[R] barplot with second y-axis

Nicolas Schneider schneid at giub.unibe.ch
Fri Jul 5 14:07:57 CEST 2002

Hi everyone

I have 2 variables measured at 12 different locations. The variables are 
measured on different scales. 

I am now trying to make a barplot with 12 "groups" of 2 bars. However, the 2 
bars of each "group" should be related to different y-axes. Thus, what I need to 
do is a barplot with 2 y-axis and then plot the 2 variables, one referring to 
the left y-axis and the other one to the right x-axis. As a beginner with R 
(second day!), this problem is still slightly too difficult. I hope someone can 

Many thanks,



Nicolas Schneider, PhD Student
University of Bern
Institute of Geography
Climatology & Meteorology
Hallerstrasse 12
CH-3012 Bern

phone +41-31-631-8542
fax   +41-31-631-8511
email schneid at giub.unibe.ch

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list