On 11/17/05, Prof Brian Ripley <ripley@stats.ox.ac.uk> 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
avoid replot the same graph two times.


>
> According to the help page for dev.copy you cannot by default copy from
> postscript() to pdf(). Is that really what you are doing? It seems to
> work for me once I enable copying, as those two devices do share fonts.


yes, you are right, we do:

> dev.control("enable")

Thanks,
Florence.



On Thu, 17 Nov 2005, Florence Combes wrote:
>
> > 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 right (6 columns) , see the code below:
> >
> >> nblock<-c(1:48)
> >> leg<-paste(c(1:npin)," ",sep=" ")
> >> legend(0,19,legend = leg, col=rainbow(nblock), lty=1,
> > merge=TRUE,ncol=6,bty="n",cex=0.6)
> >
> > 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.
> >
> > Has someone already encountered such a thing ?
>
> --
> Brian D. Ripley, ripley@stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/<http://www.stats.ox.ac.uk/%7Eripley/>
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>

	[[alternative HTML version deleted]]


