It's not really clear to me what you mean when you say that you want to
plot the hours, so it's hard to help.  Regardless, take a look at looping
and plotting in any of the free documentation on CRAN.

http://cran.r-project.org/other-docs.html

I hope that this helps,

Andrew


On Fri, Jan 18, 2013 at 2:21 AM, condor <radonniko...@hotmail.nl> wrote:

> thanks to your guys help I am closer to solving my problem but I have some
> small problem. So let's say I start with
>
> >data
> number day      hour
> 1       17      10
> 2       17      11
> 3       17      6
> 4       18      4
> 5       18      10
> 6       19      8
> 7       19      8
>
> I want to split to odd days, which I am able to do, I call this object
> frames, which looks like:
>
> > frames
> $`1`
>   c1 day1 hour1
> 1  1   17    10
> 2  2   17    11
> 3  3   17     6
>
> $`2`
>   c1 day1 hour1
> 4  6   19     8
> 5  7   19     8
>
> Now I want to make plot of the hours of both days, but not by hand. I need
> some sort of loop for this. How is this done?
>
> So
> par(mfrow=c(1,2))
> for(…) plot(…hours…)
>
> thanks for the help
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/plotting-from-dataframes-tp4655851.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Andrew Robinson
Director (A/g), ACERA
Senior Lecturer in Applied Statistics                      Tel:
+61-3-8344-6410
Department of Mathematics and Statistics            Fax: +61-3-8344 4599
University of Melbourne, VIC 3010 Australia
Email: a.robin...@ms.unimelb.edu.au    Website: http://www.ms.unimelb.edu.au

FAwR: http://www.ms.unimelb.edu.au/~andrewpr/FAwR/
SPuR: http://www.ms.unimelb.edu.au/spuRs/

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to