Check out example codes for "Create a line chart which shows the trend of the number of tweets posted in R language". It will help you in understanding the concepts better.

Code Example 1

plot(AirPassengers,type="l")  #Simple Line Plot

Learn ReactJs, React Native from akashmittal.com