Skip to content

plotting symbol

4 messages · Federico Calboli, Peter Dalgaard, Chuck Cleland

#
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
#
Federico Calboli wrote:
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=".")

  
    
#
Chuck Cleland wrote:
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 Dalgaard wrote:
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.