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
On Behalf Of Monica Pisica
> Sent: Tuesday, July 22, 2008 7:50 AM
> To: r-help@r-project.org
> Subject: [R] saving plot both as jpg and pdf
> Importance: High
>
>
> Hi,
>
> I want to save a plot automatically as a pdf and jpg, and if
> I open the pdf device first and
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
Hi,
I want to save a plot automatically as a pdf and jpg, and if I open the pdf
device first and jpeg second only the jpeg file saves correctly …. If I do
reverse, only the pdf file saves correctly.
pdf('E:/my_graphs/test1.pdf', bg = "white")
jpeg('E:/my_graphs/test1.jpg', quality = 100, bg =
5 matches
Mail list logo