Using ggplot in R
- by g256
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.