the commands used in R to plot the graph using the ring buffer data