[R] r-help volcano plot

Duny anna.dunietz at gmail.com
Tue Sep 6 08:28:27 CEST 2011


Use the ggplot2 package in order to make a volcano plot! Check out the
following book for more information about the package: ggplot2: Elegant
Graphics for Data Analysis (Use R) by Hadley Wickham.  ggplot2 is great for
creating professional graphics in no time.     

If you look up stat_density in R, you will find the following example at the
bottom of the page:

# Make a volcano plot
ggplot(diamonds, aes(x = price)) + 
  stat_density(aes(ymax = ..density..,  ymin = -..density..), 
    fill = "grey50", colour = "grey50", 
    geom = "ribbon", position = "identity") + 
  facet_grid(. ~ cut) + 
  coord_flip()

Good luck!
Anna

--
View this message in context: http://r.789695.n4.nabble.com/r-help-volcano-plot-tp3792651p3792696.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list