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 =
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:
Hi,
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 Plotting functions only send
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 jpeg second only the jpeg
file saves correctly
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
5 matches
Mail list logo