Just an advice: I recommend use the png device instead of jpeg for
plotting purposes, it gives better results for graphs. Jpeg is better
for photos. Off course IMHO :-)
I wish a nice day
Tomas
stephen sefick wrote:
you have to go in sequence- you are opening a pdf device then a jpeg
device
Plotting functions only send the plot to the current device (in your case the
2nd one opened). You can see all the currently open devices with dev.list, you
can see which is current with dev.cur, you can change which is current using
dev.set (and possibly dev.next and dev.prev). Look at the he
have the jpg device open,
save the plot there and after use dev.copy2pdf to get my pdf.
Again, thanks,
Monica> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; r-help@r-project.org>
Date: Tue, 22 Jul 2008 09:15:51 -0600> Subject: RE: [R] saving plot both as jpg
and pdf> > Plott
you have to go in sequence- you are opening a pdf device then a jpeg device
and ploting to the jpeg device. My suggestion would be to do
pdf()
plot(yourplot)
dev.off()
jpeg
plot(yourplot)
dev.off()
this should work
On Tue, Jul 22, 2008 at 9:50 AM, Monica Pisica <[EMAIL PROTECTED]>
wrote:
>
> H
4 matches
Mail list logo