rcharts issue

This code worked for me.