Do R sites have pens?

Do sites in R have pens? For example, if I used something like this:

plot(plotData[,1], plotData[,2], type='l', col='red', lty=2, xlab='x', 
    ylab='y', main='sample plot')

can I change anything on this graph later, like a color, or an x-axis label, or an x-axis range, etc.? Or do I have a story over and over?

Thanks!

+4
source share
1 answer

The base Rhas no descriptors in the sense that you are asking for. Although you can change some aspects of the plot after you have built it, it is much better suited to the needs in question, will useggplot

You can save the output to the object and add if necessary.
You can also uselast_plot()

http://www.cookbook-r.com/Graphs/ http://docs.ggplot2.org/current/

+4

All Articles