Chris
Quoting from the ggplot2 book, page 166: "There is no way to produce
a plot with two axes in ggplot2 because this type of plot is
fundamentally misleading".
What you want to do is slightly different though, so here is one
workaround. The idea is to modify the scale labels to display
temperaturs in Celsius as well as Fahrenheit:
degC <- seq(0,100,10)
degCandF <- paste(degC,"C / ",degC * 9 / 5 + 32,"F",sep="")
d <- data.frame(tempcelcius=round(rnorm(25,15, 10),
1),attendence=rnorm(25,500, 100))
p <- qplot(x=tempcelcius,y=attendence,data=d)
p <- p + scale_x_continuous("Temperature (Celsius/
Fahrenheit)",breaks=degC,labels=degCandF)
print(p)
--
Andrie