[R] Histogram/Bar plot graph
Senthil Kumar M
senthil.debian at gmail.com
Wed Feb 6 11:19:16 CET 2008
Hi,
I have the following data:
> Myvalues
Gene ES MEF Embryo ESHyp
1 GeneA -0.38509507 0.00 1.6250 1.7039921
2 GeneB 0.06262914 0.00 1.6250 -0.272033
and so on...
I want to plot the expression values of GeneA and GeneB in the
different cell/embryo/conditions (columns 2:5 above). Now, if I do:
>library(ggplot2)
> qplot(x=Gene, Embryo, geom = "bar")
I get a plot of GeneA, B...so on only for the Embryo (ie column 4).
How do I get to plot multiple instances of Y for the same value of X ?
I have tried to find this out myself, but it is a bit confusing and
so, I am writing to the list as a last resort.
Any help or guidance will be much appreciated.
TIA,
Senthil
More information about the R-help
mailing list