Line plots are simply lines connecting all the x and y dots. They are very easy to interpret and are widely used to display an upward or downward trend in data. In this recipe, we will use the
googleVis package and create an interactive R line plot. We will learn how we can emphasize on certain variables in our data. The following line plot shows fertility rate:
We will use the
googleVis package to generate a line plot.
In order to construct a line chart, we will install and load the
googleVis package in R. We would also import the fertility data using the