I would like to add another axis on side 4 (see code below)

#order the box plot any damn way I want too
order1 <- factor(as.character(x$Site),
                              levels=c("Betty's Branch", "Stevens Creek",
"North Augusta", "520", "Horse Creek", "Stan's",  "place","Downstream",
"IP", "Vogtle", "301", "Clyo"))


#Chloride
#add BC boxplot
f <- boxplot(Chloride~order, data=e,
names=c("","","","","","","","","","","",""), xaxt="n", yaxt="n")
par(new=T)
d <- boxplot(Chloride~order, data=x, main="Chloride",  ylab="mg/L",
names=c("215", "SC", "202", "198", "HC", "190", "BC", "185", "179", "148",
"119", "61"), plot=F)
boxplot(Chloride~order1, data=x, main="Chloride",  ylab="mg/L",
names=c("215", "SC", "202", "198", "HC", "190", "BC", "185", "179", "148",
"119", "61"))
mtext(paste("(n=", d$n, ")", sep = ""), at = seq_along(d$n), line = 2, side
= 1, cex=0.66)
 axis(4,at=c(0,50,100,150,200,300), labels=T)
par(new=F)

-- 
Let's not spend our time and resources thinking about things that are so
little or so large that all they really do for us is puff us up and make us
feel like gods. We are mammals, and have not exhausted the annoying little
problems of being mammals.

-K. Mullis

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to