[R] how to make plot lines thicker

Sarah Goslee sarah.goslee at gmail.com
Mon Jul 9 20:27:45 CEST 2012

I'd suggest using lines() rather than points() to add lines to a plot.
The parameter to change line width is lwd rather than cex.

lines(x, Sobs$Chao_1_Mean, col="Gray", lwd=2)

Reading ?par can be both an enlightening and confusing experience.


On Mon, Jul 9, 2012 at 1:11 PM, peziza <jenkerekes at gmail.com> wrote:
> I am trying to make the lines thicker in a graph (for a ppt presentation).
> Here is what I currently have:
> plot(x,y,type="l", ylab="Number of OTUs", xlab="Number of Samples
> Collected", col="Black", pch=1, ylim=c(0,6000))
> points(x, Sobs$Chao_1_Mean, type="l", col="Gray", pch=1) (this is one of the
> added lines in the graph).
> I believe cex can help increase the size of the points. But I haven't been
> able to get it to work.

Sarah Goslee

More information about the R-help mailing list