Displaying 1 result from an estimated 1 matches for "asellus".
2012 Nov 12
2
order in stacked barplot
...))
data2<-data.frame(Teich1,Gruppe,Herkunft,IRI)
data2
> str(data2)
'data.frame': 65 obs. of 3 variables:
$ Teich1: Factor w/ 5 levels "2","4","8","10",..: 1 1 1 1 1 1 1 1 1 1 ...
$ Gruppe1: Factor w/ 7 levels "Annelida","Asellus",..: 1 2 3 4 5 6 7 1 2 3
...
$ IRI : num 0.606 16.274 0.326 0.396 0 ...
attach(data2)
#?data.frame
str(data2)
library(ggplot2)
ggplot(data2, aes(Teich1,IRI, fill=Gruppe1)) +
geom_bar(stat="summary", fun.y="sum") +
facet_grid(~Herkunft)
So i get a plot with stacked...