i have been struggeling on a barplot two days now but i really need some help here. What i need is 4 barplots diagrams besides each other for the four levels of burning degrees in a forest (level 1-4), in each graph i want a distribution of diametres of trees (no.= 9005 trees) with classes from 1(<10cm) to 10(>=50 cm).xlab=classes of diametre (1-10); ylab= number of stems in this diametre class. But i have different numbers of trees for each level so i would need to use the mean for every bar (devide the sum with the number of stems with the same number A03,...) or group them through the column "class" which already is the diameter class. And last but not least i want to bars next to each other(or one after teh others) for the two periods (2011 and 2020).
no. dbh year level class A03 19 2011 unverbrannt 1 A03 19 2011 kaum verbrannt 2 A04 27 2011 kaum verbrannt 3 A04 15 2011 kaum verbrannt 4 A05 33 2011 kaum verbrannt 5 B01 21 2011 kaum verbrannt 6 . 2020 . 7 2020 kaum verbrannt 8 . 2020 . 9 . . schwach verbrannt 10 . . . . stark verbrannt
In the end it should look like this: https://luisdva.github.io/rstats/Diverging-bar-plots/
I hope it makes any sense.
Thanks in advance Elsa