On 12/12/2012 09:10, peter dalgaard wrote:
On Dec 12, 2012, at 01:48 , arun wrote:
Hi,
Try this:
pdf("broke.pdf")
palette(rainbow(6))
plot(x=x1,y=y1,col=y1,xlim=c(-10,20))
palette(heat.colors(6))
points(x=x2,y=y2,col=y2)
dev.off()
A.K.
Yep. Notice though that this is not specific
On Dec 12, 2012, at 01:48 , arun wrote:
> Hi,
> Try this:
> pdf("broke.pdf")
> palette(rainbow(6))
> plot(x=x1,y=y1,col=y1,xlim=c(-10,20))
> palette(heat.colors(6))
> points(x=x2,y=y2,col=y2)
> dev.off()
> A.K.
Yep. Notice though that this is not specific to dev.copy2pdf, the same effect
is:
pdf("broke.pdf")
palette(rainbow(6))
plot(x=x1,y=y1,col=y1,xlim=c(-10,20))
palette(heat.colors(6))
points(x=x2,y=y2,col=y2)
dev.off()
A.K.
- Original Message -
From: Andrew Crane-Droesch
To: R help
Cc:
Sent: Tuesday, December 11, 2012 7:17 PM
Subject: [R] Multiple pal
] Multiple palettes on single plot don't get rendered when I use
dev.copy2pdf
Hi All,
I'm having trouble with the colors on my screen getting translated to the
colors in the outputted .pdf document.
Here is a caricature of my problem:
par(mfrow=c(1,1))
x1 = rnorm(1000)
x2 = rnorm
Hi All,
I'm having trouble with the colors on my screen getting translated to
the colors in the outputted .pdf document.
Here is a caricature of my problem:
par(mfrow=c(1,1))
x1 = rnorm(1000)
x2 = rnorm(1000)+10
y1 = rnorm(1000)+10
y2 = rnorm(1000)+10
palette(rainbow(6))
plot(x=x1,y=y1,col=y1
5 matches
Mail list logo