[R] Question about removing missing data rows in the qplot
Wang, Zhensheng
zhensheng.wang at emory.edu
Tue Apr 2 16:43:29 CEST 2013
Hi,
I've a question about the qplot. I use facets=Antibiotics~Gram.Stainng to draw 6 plots in a panel. Now the problem is within each 'Gram.Staining' categorical level there are some antibiotics does not have value (in my case is log(MIU)). Because some antibiotics are positive gram staining and some are negative.
So my question is how to remove these missing value rows in the plot?
My code is
qplot(Bacteria,log(MIC),data=project2,facets=Gram.Staining~Antibiotics,color=Bacteria,geom='bar',stat='identity',fill=Bacteria,na.rm=TRUE)+coord_flip()
I also enclose my plot.
Thank you!
Wang Zhensheng
________________________________
This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.
If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
More information about the R-help
mailing list