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?
Thanks.
Gary
[[alternative HTML version deleted]]
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,
Use ?points for more info on changing the appearance of points. The cex
function is what you are looking for.
Chris
On 16 Oct 2010, at 20:12, 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 -
Hi Gary,
On the off chance you want to reduce size to reduce over-plotting, you
can also use semi-transparent colors (otherwise this is completely
irrelevant to you):
# Open and setup new graphics device
dev.new(); exampledev - dev.cur(); par(mfcol = c(1, 2))
# Regular color
plot(x = Ex -
4 matches
Mail list logo