Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create a dataset
- specie=c(rep("sorgho" , 3) , rep("poacee" , 3) , rep("banana" , 3) ,
- rep("triticum" , 3) )
- condition=rep(c("normal" , "stress" , "Nitrogen") , 4)
- value=abs(rnorm(12 , 0 , 15))
- data=data.frame(specie,condition,value)
- # Grouped
- ggplot(data, aes(fill=condition, y=value, x=specie)) +
- geom_bar(position="dodge", stat="identity")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement