Re: [R] simultaneous plots

2010-04-07 Thread S Ellison
see ?lines and ?points >>> Alexandre Serra Barreto 07/04/2010 01:16 >>> Dear listmates, could anybody help me on how to do simultaneous plots? for instance: plot(x,y) plot(x,z) but my intention is to plot both of them simultaneously in the same graphic. Thanks in advance, A

Re: [R] simultaneous plots

2010-04-06 Thread Yi Du
Hi Alex, You can try to use: par(new=TRUE) to draw the two graphs together. But keep in mind that the scale of x axis of both graphs is using the same level. Otherwise, the graph would be messed up. Yi On Tue, Apr 6, 2010 at 6:16 PM, Alexandre Serra Barreto wrote: > > Dear listmates, >

[R] simultaneous plots

2010-04-06 Thread Alexandre Serra Barreto
Dear listmates, could anybody help me on how to do simultaneous plots? for instance: plot(x,y) plot(x,z) but my intention is to plot both of them simultaneously in the same graphic. Thanks in advance, Alexandre. __ R-help@r-project.

Re: [R] simultaneous plots

2008-12-03 Thread Prof Brian Ripley
On Wed, 3 Dec 2008, David Epstein wrote: Prof Brian Ripley wrote: How about dev.copy2pdf ? I put the following into a script: quartz(...) #many graphics commands dev.copy2pdf(pdf,file="ratio1.pdf") Just dev.copy2pdf(file="ratio1.pdf") and then sourced the script. I got the er

Re: [R] simultaneous plots

2008-12-03 Thread David Epstein
Prof Brian Ripley wrote: > > How about dev.copy2pdf ? > I put the following into a script: quartz(...) #many graphics commands dev.copy2pdf(pdf,file="ratio1.pdf") and then sourced the script. I got the error message Error in pdfFonts(family) : invalid arguments in 'pdfFonts' (must be

Re: [R] simultaneous plots

2008-12-03 Thread Prof Brian Ripley
On Wed, 3 Dec 2008, Philipp Pagel wrote: On Tue, Dec 02, 2008 at 02:28:18PM -0800, David Epstein wrote: Is there a good and concise way of making simultaneous plots that are identical, but directed to different devices? I'm writing an R-script that produces a pdf file. I would really like to c

Re: [R] simultaneous plots

2008-12-03 Thread Philipp Pagel
On Tue, Dec 02, 2008 at 02:28:18PM -0800, David Epstein wrote: > Is there a good and concise way of making simultaneous plots that are > identical, but directed to different devices? > > I'm writing an R-script that produces a pdf file. I would really like to > check visually whether the pdf file

[R] simultaneous plots

2008-12-02 Thread David Epstein
Is there a good and concise way of making simultaneous plots that are identical, but directed to different devices? I'm writing an R-script that produces a pdf file. I would really like to check visually whether the pdf file shows what I expect. So I would like the same commands to produce a plot