[R] plotting from dataframes

condor radonnikodym at hotmail.nl
Thu Jan 17 16:21:45 CET 2013


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.



More information about the R-help mailing list