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

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
thanks you both for the reply. yes, the second question is two-in-one, a bit confusing: I was thinking about Matlab's hold command, but also waiting for user input to proceed. So you have provided the complete answer. The first question though - yes, windows() will give you a different window on

Re: [R] plotting questions

2009-02-20 Thread David Winsemius
On Feb 20, 2009, at 4:53 AM, Simon Pickett wrote: Hi Oliver, 1) thats easy, if you want to display several graphs at once type windows(), once for each new graph. 2) Not sure exactly what you mean here but you have complete control over graphs in R. e.g. plot a blank graph then add axex

Re: [R] plotting questions

2009-02-20 Thread Simon Pickett
Hi Oliver, 1) thats easy, if you want to display several graphs at once type windows(), once for each new graph. 2) Not sure exactly what you mean here but you have complete control over graphs in R. e.g. plot a blank graph then add axex using axis(), add points using points(), etc. etc. C