I lose control on colors when I plot points with pch=1 or 16
(empty or solid circle) or any letter, say "A". For example:
Â
x=runif(5)
y=runif(5)
pdf("plot.pdf")
plot(x, y,
type='p', pch=1, col = 1:5) #just black points
plot(x, y,
type='p', pch=0, col = 1:5) #points with different colors
dev.off()
Â
This problem occurred for different versions of R under Mac
OS X 10.4. not sure whether this is true for other operating systems. I used my
most basic settings of R without any special package loaded. Any
suggestions/ideas
would be appreciated.
Â
> sessionInfo()
R version 2.8.0 (2008-10-20)
powerpc-apple-darwin8.11.1
Â
locale:
C
Â
attached base packages:
[1] stats    graphicsÂ
grDevices utils    datasets methods Â
base   Â
Â
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.