Displaying 2 results from an estimated 2 matches for "coliform".
2013 Apr 18
1
Arranging two different types of ggplot2 plots with axes lined up
...s), but I haven't been able to figure it out for two different types
of plots.
Below is my test case:
library(ggplot2)
library(gridExtra)
#generate test precipitation data
year<-c(2000,2001,2002,2003,2004)
precip<-c(46,100,80,74,20)
yp<-data.frame(year, precip)
#generate test fecal coliform data
year2<-c(2000,2000,2000,2000,2000,2000,2000,2000,2000,2000,
2001,2001,2001,2001,2001,2001,2001,2001,2001,2001,
2002,2002,2002,2002,2002,2002,2002,2002,2002,2002,
2003,2003,2003,2003,2003,2003,2003,2003,2003,2003,
2004,2004,2004,2004,2004,2004,2004,2004,2004,2004)
fc<-sample(1:1000, 50)
y...
2009 Feb 09
2
Help on BarPlot
...and one of the graphs is a bar plot of 'Z' scores.
On the bar plot I am using the following line to plot some results
barplot (zb[,c("ZBW")], ylim = c(-6,6), names.arg=zb[,c("LabNo")],xlab="Lab Code Number", cex.names = .5 , axis.lty=1 , main = " Total Coliform ")
What I would like to do is move the xlab parameter to sit on top or on each bar and not on the x-axis at y=0.
Any help would be appreciated.
Thanks
Steve
[[alternative HTML version deleted]]