Doing simple grouped barplot with R

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Doing simple grouped barplot with R

mngon
Hi,
I'm trying to make a grouped bar chart with R (It's my first experience with R). I have the following excel table:
type                  a1875    a1955     a1988   a2013
Afforested area         0        9         108     108
Arable land               2       119       243     243
Built up area             5       24        297     297
Chestnut forest         1       6          36      36
Forest land               3       18        199     199
Lakes                      2       2          2       2
Natural grass            0       38        250     250
River zone                4       3         22      22
Transitional              0       62        206     206

I would realize a grouped bar chart as the image. In particular I would put "type" name on the X axis, the values on the Y axis with 4 bars with different colors for each years (a1875; a1955 ...)



thanks