Hi All, can I have a plot where the symbol for the dots is smaller than pch =20 but bigger than 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
plotting symbol
4 messages · Federico Calboli, Peter Dalgaard, Chuck Cleland
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
Chuck Cleland wrote:
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=".")
Notice though, that it depends on the device. On X11 (presumably Windows too) at "normal" resolutions, you really have only one sice which is less than the default. Try e.g. plot(1:10, rep(0,10), pch=20,cex=seq(1,.1,,10))
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.
Peter Dalgaard wrote:
Chuck Cleland wrote:
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=".")
Notice though, that it depends on the device. On X11 (presumably Windows too) at "normal" resolutions, you really have only one sice which is less than the default. Try e.g. plot(1:10, rep(0,10), pch=20,cex=seq(1,.1,,10))
Peter: Thanks for making that point, which certainly did not occur to me. I see the same thing with the windows device with pointsize at the default of 12 (win.graph too). With pointsize=15 I can get two sizes smaller than the default. And on the pdf device I get many sizes less than the default.
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