, David Winsemius wrote:
From: David Winsemius
Subject: Re: [R] Bug with the col option in plot function
To: xiaohey...@yahoo.com
Cc: "r-help@r-project.org Help" , "R-SIG-Mac Mailing
List"
Date: Friday, March 20, 2009, 7:45 PM
Really belongs o R-SIG-Mac list and have copie
Really belongs o R-SIG-Mac list and have copied it there. I cannot
reproduce on my Mac. I get the same colors on the pdf file with that
code as I do on the screen device. I have in in the past needed to set
up a device before plotting:
trellis.device(device="postscript", color = TRUE) ... bu
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
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
4 matches
Mail list logo