This lesson requires a premium membership to access.
Premium membership includes unlimited access to all courses, quizzes, downloadable resources, and future content updates.
In R, we can create a line plot using the same plot() function by adding a plot type of "l". This will plot the (x,y) paired observations and connect them with lines.
plot(x,y,type="l")
Let's generate our own data for this lesson. We will use the rnorm() function to generate a set of 100 random numbers that follow a normal distribution. These random numbers will be plotted on y-axis. x-axis will be a sequence of numbers from 1 to 100.