[R] pch as single character

Troels Ring tring at gvdnet.dk
Sat Nov 30 16:32:42 CET 2002


Dear friends - using windows xp and R1.6.1
when doing
x <- 12
as.character(x)
[1] "12"
plot(1,2,pch=as.character(x))
the interesting point is marked with: 1 whereas I would like to see 12.
In par() is specified under pch:
Either an integer specifying a symbol or a single character to be used as 
the default in plotting points
How is that overridden ?

Best wishes
Troels
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20021130/f335c522/attachment.html


More information about the R-help mailing list