search for: barblot

Displaying 1 result from an estimated 1 matches for "barblot".

Did you mean: ballot
2012 Dec 13
2
How to select a subset data to do a barplot in ggplot2
...4632 live 2 4633 live 2 4634 live 6 4675 live 6 4679 dead 10 4716 dead 10 4719 live 10 4721 dead 11 4726 live 11 4728 nosperm 11 4730 nosperm 12 4732 live 17 4783 live 17 4783 live 17 4784 live I just want a barblot to count "live" or "dead" in every "FID", and fill the bar with different colour. I try these codes: p<-ggplot(data,aes(x=FID)); p+geom_bar(aes(x=factor(FID),y=..count..,fill=STATUS)) But how could I exclude "nosperm" or other levels just in the use of...