[R] plotting symbol

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Mar 23 17:58:44 CET 2007


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. 
>>     
>
>



More information about the R-help mailing list