Josef,
I think all you need to do is use the transpose of your data matrix. So if
your dataset is called mydata:
barplot(t(as.matrix(x)),beside=T)
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-make-a-barplot-similar-to-Excel-s-clustered-column-chart-tp2254979p2255008.h
josef.kar...@phila.gov wrote:
> I have a matrix with 12 rows (one for each month), 2 columns (baseflow,
> runoff). I would like to make a barplot similar to Excel’s “clustered
> column chart�.
> Here is my matrix ‘x’
>
> 8.25875413.300710
> 10.180953 10.760465
> 11.012
I have a matrix with 12 rows (one for each month), 2 columns (baseflow,
runoff). I would like to make a barplot similar to Excelâs âclustered
column chartâ.
Here is my matrix âxâ
8.25875413.300710
10.180953 10.760465
11.012184 13.954887
10.910870 13.839839
3 matches
Mail list logo