[R] Dual axis labeling of a single quantity

From: Thomas Adams <Thomas.Adams_at_noaa.gov>
Date: Mon, 16 Jun 2008 14:51:50 -0400

I have a problem where I need to label the vertical axes of a Boxplot with related, but different quantities (flow & height), which have a known relationship. Primarily I want to plot the variable as a flow on the left axis and on the opposing right axis, show the corresponding height. Is it possible to get the flow range (max & min) of the left axis and then supply the right axis with that range (corresponding max/min) which will be plotted automatically by R? It does not matter if the opposing tick marks exactly correspond to the tick mark values on the left side as long as the scale is correct (that is the correct corresponding range).

I'm not even sure where to start searching for this…


Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams_at_noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033

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 16 Jun 2008 - 19:48:26 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 Tue 17 Jun 2008 - 16:30:41 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