Using ggplot in R

Posted by g256 on Stack Overflow See other posts from Stack Overflow or by g256
Published on 2012-07-10T21:12:21Z Indexed on 2012/07/10 21:15 UTC
Read the original article Hit count: 151

Filed under:
|

I have a time series cvs file like this (in var there are the values):

Hour,Date,Type,val1,val2,val3,val4,val5,val6.....
0100,0153,aaa,
0100,0153,bbb,
0100,0153,ccc,
0100,0153,ddd,
0200,0153,aaa,
0200,0153,bbb,
0200,0153,ccc,
0200,0153,ddd,
.
.
0100,0154,aaa,
0100,0154,bbb,
0100,0154,ccc,
0100,0154,ddd,
.
.

I would like to use ggplot to plot the barplot mean of the time series of val1,val2,... for each type. One plot for each type except for ccc and ddd that should be considered as one type, so for this I should first sum up the value, then take the mean, then plot). So three plot at the end.

Thanks for advice.

© Stack Overflow or respective owner

Related posts about r

    Related posts about ggplot