[R] Boxplot custom axis

From: stephen sefick <ssefick_at_gmail.com>
Date: Mon, 09 Jun 2008 15:33:53 -0400

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"))

#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_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 09 Jun 2008 - 19:37:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 09 Jun 2008 - 20:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive