Re: [R] dev.copy legend problem

2005-11-18 Thread Florence Combes
Thanks for the answer. The problem we are facing is that we dev.copy to a pdf device and then, the legend doesn't look the same: numbers overlap a little lines. I suspect that this is what you are experiencing. yes it seems to be If you want to end up with a PDF plot, use pdf() and

Re: [R] dev.copy legend problem

2005-11-18 Thread Florence Combes
On 11/17/05, Prof Brian Ripley [EMAIL PROTECTED] wrote: That's why we recommend that you do not use dev.copy but replot on the target device. as I plot the graph in the postscript device, and then want to save it into both pdf and png files, I prefer using dev.copy because it allows me to

[R] dev.copy legend problem

2005-11-17 Thread Florence Combes
Dear all, We are facing this problem for long, and so ask for your help. We are plotting 2 graphs in a postscript device (left part -layout function-), and the common legend for these graphs on the right part. The legend in the postscript device looks ok: this is color lines with numbers on the

Re: [R] dev.copy legend problem

2005-11-17 Thread Marc Schwartz (via MN)
On Thu, 2005-11-17 at 17:03 +0100, Florence Combes wrote: Dear all, We are facing this problem for long, and so ask for your help. We are plotting 2 graphs in a postscript device (left part -layout function-), and the common legend for these graphs on the right part. The legend in the

Re: [R] dev.copy legend problem

2005-11-17 Thread Prof Brian Ripley
That's why we recommend that you do not use dev.copy but replot on the target device. Different devices have different fonts and font metrics, and so the plot as laid out for one will almost always not be right for the other. According to the help page for dev.copy you cannot by default copy

[R] dev.copy()

2003-06-30 Thread David Brahm
In a batch script (i.e. there is no screen device), I would like to create both a PDF file and a PNG file from the same plot. I thought this would be the way to do it, but it isn't: R bitmap(copy.png, png16m, res=300) R pdf(copy.pdf) R plot(1:10, 1:10) # Plot into pdf file R dev.copy