[R] reduce the size of points in plot???

David Winsemius dwinsemius at comcast.net
Sat Oct 16 21:15:46 CEST 2010


On Oct 16, 2010, at 12:12 PM, Hongwei Dong wrote:

> Hi, R users,
>
> Can anyone tell me how I can change the size of points in my plot?
>
> For example:
>
> x <- c(1,3,6,9,12)
> y <- c(1.5,2,7,8,15)
> plot(x,y,pch=20)
>
> How do I reduce the size of those points?

plot(x,y,pch=20, cex=0.2)
plot(x,y,pch=20, cex=c(0.2, 0.8, 2, 4) )

-- 
David.



More information about the R-help mailing list