[R] plotting symbol

Chuck Cleland ccleland at optonline.net
Fri Mar 23 17:34:37 CET 2007


Federico Calboli wrote:
> Hi All,
> 
> can I have a plot where the symbol for the dots is smaller than pch  
> =20 but bigger than pch = '.'?

  Have you considered using the cex argument to reduce the size of pch=20?

X <- rnorm(20)

par(mfrow=c(2,2))
plot(X, pch=20, cex=1.0)
plot(X, pch=20, cex=0.6)
plot(X, pch=20, cex=1.5)
plot(X, pch=".")

> Best,
> 
> Fede
> 
> --
> Federico C. F. Calboli
> Department of Epidemiology and Public Health
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
> 
> Tel +44 (0)20 75941602   Fax +44 (0)20 75943193
> 
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.com
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code. 

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894



More information about the R-help mailing list