Re: [R] Plotting Questions (was: Results of applying na.omit on zoo object)

2011-09-19 Thread Gabor Grothendieck
On Mon, Sep 19, 2011 at 8:34 PM, Rich Shepard wrote: > On Mon, 19 Sep 2011, Gabor Grothendieck wrote: > >> names(z) gives the column names of zoo object z. > >> # get a list of date ranges >> lapply(1:ncol(z), function(i) range(time(na.omit(z[, i] > If z has column names (but do not use this

Re: [R] Plotting Questions (was: Results of applying na.omit on zoo object)

2011-09-19 Thread Rich Shepard
On Mon, 19 Sep 2011, Gabor Grothendieck wrote: names(z) gives the column names of zoo object z. # get a list of date ranges lapply(1:ncol(z), function(i) range(time(na.omit(z[, i] Gabor, That combination is just what I was looking for. Now I can start using my new knowledge on these

Re: [R] Plotting Questions (was: Results of applying na.omit on zoo object)

2011-09-19 Thread Gabor Grothendieck
On Mon, Sep 19, 2011 at 5:24 PM, Rich Shepard wrote: > On Mon, 19 Sep 2011, Rich Shepard wrote: > >>  On a related note, I'm reading the zoo help pages and vignettes but do >> not see the syntax for specifying which stream/parameter pair I want to >> plot. What do I read to learn how to do this? >

Re: [R] Plotting Questions (was: Results of applying na.omit on zoo object)

2011-09-19 Thread Rich Shepard
On Mon, 19 Sep 2011, Rich Shepard wrote: On a related note, I'm reading the zoo help pages and vignettes but do not see the syntax for specifying which stream/parameter pair I want to plot. What do I read to learn how to do this? I think that my reading answered this question, but now I nee

Re: [R] Plotting questions

2009-05-08 Thread Greg Snow
--- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of richard.cot...@hsl.gov.uk > Sent: Friday, May 08, 2009 4:01 AM > To: lehe > Cc: r-help@r-project.org; r-help-boun...@r-project.org > Subject: Re: [R] Plotting questions > > > 1

Re: [R] Plotting questions

2009-05-08 Thread S Ellison
>>> lehe 08/05/2009 09:58:40 >>> >1. How to plot several lines in a figure? See ?lines >2. How to open another figure window? see ?windows *** This email and any attachments are confidential. Any use...{{dropped:8}} _

Re: [R] Plotting questions (ROCR)

2009-05-08 Thread Tobias Sing
To have several performance curves on a single plot, use the "add=TRUE" option, e.g. as follows: plot(perf1) plot(perf2, add=TRUE, col='red') Please read the help to ?plot.performance. It also tells you how you can adjust all graphical parameters for the individual curves. This slide deck contain

Re: [R] Plotting questions (ROCR)

2009-05-08 Thread lehe
Thanks! I am now also trying to plot several ROCs in the same figure using ROCR package. The following code: "pred1 <- prediction(yest1,ytest) perf1 <- performance( pred1, "tpr", "fpr" ) plot( perf1 ) pred2 <- prediction(yest2,ytest) perf2 <- performance( pred2, "tpr", "fpr" ) lines( perf2 )" wi

Re: [R] Plotting questions

2009-05-08 Thread Richard . Cotton
> 1. How to plot several lines in a figure? Suppose I have several sets of > points (xi,yi), where xi and yi are equal-length vector. plot(x1,y1) will > give a line connecting these points. Another plot(x2,y2) will erase what > plot before and plot the new line. Can I have these lines all drawn in

[R] Plotting questions

2009-05-08 Thread lehe
Hi, I am new to R. I have two questions about plotting in R: 1. How to plot several lines in a figure? Suppose I have several sets of points (xi,yi), where xi and yi are equal-length vector. plot(x1,y1) will give a line connecting these points. Another plot(x2,y2) will erase what plot before and

Re: [R] plotting questions

2009-02-20 Thread Greg Snow
...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Oliver > Sent: Friday, February 20, 2009 8:31 PM > To: David Winsemius > Cc: r-help@r-project.org > Subject: Re: [R] plotting ques

Re: [R] plotting questions

2009-02-20 Thread Oliver
arly >> Emanuel Paradis's great intro to using R, very helpful for >> plots. >> >> Hope this helps, >> >> Si. >> >> >> - Original Message - From: "Oliver" >> To: >> Sent: Friday, February 20, 2009 3:33 AM &

Re: [R] plotting questions

2009-02-20 Thread David Winsemius
dis's great intro to using R, very helpful for plots. Hope this helps, Si. - Original Message - From: "Oliver" To: Sent: Friday, February 20, 2009 3:33 AM Subject: [R] plotting questions hi, There are two types of plotting I miss dearly in Matlab, can anyone enligh

Re: [R] plotting questions

2009-02-20 Thread Simon Pickett
. Check out these pdfs http://cran.r-project.org/other-docs.html particularly Emanuel Paradis's great intro to using R, very helpful for plots. Hope this helps, Si. - Original Message - From: "Oliver" To: Sent: Friday, February 20, 2009 3:33 AM Subject: [R] plotting

[R] plotting questions

2009-02-20 Thread Oliver
hi, There are two types of plotting I miss dearly in Matlab, can anyone enlighten me how to do similar stuff in R? - multiple figures with individual windows (not multiple figures in same window)? - draw something, hold on the drawing, wait for a key action, then overlay on top? Not sure if thi