Re: [R] Plot only a portion of a record

2014-01-14 Thread Greg Snow
If you use the formula method for plot then you can use the subset argument, for example: plot(Sepal.Width ~ Sepal.Length, data=iris) plot(Sepal.Width ~ Sepal.Length, data=iris, subset=Species=='setosa') On Mon, Jan 13, 2014 at 5:39 PM, Janet Choate wrote: > Hi R community, > i have a data fra

Re: [R] Plot only a portion of a record

2014-01-13 Thread arun
Hi Janet, You may also check library(xts).  mod.sage <- read.table(text="date year month day  wy  yd wyd  modQ 1 1965-10-01 1965    10  1 1966 274  1 0.3341630 2 1965-10-02 1965    10  2 1966 275  2 0.3223247 3 1965-10-03 1965    10  3 1966 276  3 0.3459057 4 1965-10-04 1965    10  4 1966 277

Re: [R] Plot only a portion of a record

2014-01-13 Thread David Winsemius
On Jan 13, 2014, at 4:39 PM, Janet Choate wrote: > Hi R community, > i have a data frame of streamflow for 23 years, i.e. > >date year month day wy yd wyd modQ > 1 1965-10-01 196510 1 1966 274 1 0.3341630 > 2 1965-10-02 196510 2 1966 275 2 0.3223247 > 3 1965-10-03

Re: [R] Plot only a portion of a record

2014-01-13 Thread Jim Lemon
On 01/14/2014 11:39 AM, Janet Choate wrote: Hi R community, i have a data frame of streamflow for 23 years, i.e. date year month day wy yd wyd modQ 1 1965-10-01 196510 1 1966 274 1 0.3341630 2 1965-10-02 196510 2 1966 275 2 0.3223247 3 1965-10-03 196510 3 1

[R] Plot only a portion of a record

2014-01-13 Thread Janet Choate
Hi R community, i have a data frame of streamflow for 23 years, i.e. date year month day wy yd wyd modQ 1 1965-10-01 196510 1 1966 274 1 0.3341630 2 1965-10-02 196510 2 1966 275 2 0.3223247 3 1965-10-03 196510 3 1966 276 3 0.3109057 i only want to plot 1 of