One of the best features of R is its graphics capability. As far as flexibility and breadth, R graphics is unsurpassed (in my opinion). There are MANY functions in R that involve visualizing data. There are many examples online, but a nice site that has tons of graphics (and syntax!) is:

The plot() Function

A very useful graphics function is the plot() function. This function plots a two-dimensional pane with two arguments giving the x and y coordinates.

Let’s create a simple plot:

x<-seq(1,100,1) #create a vector with elements 1:100.
y<-seq(1,10,length.out=length(x)) # create a vector 1:10 with same length.
plot(x,y) #plot it.