I've looked in many places, and while I can find posts on things like adding a second histogram to the plot, adding a second y-axis to a plot with two time series, I can't find anything on my problem. I have a histogram created with ggplot2, qplot function. I need to add a second y-axis, to the right side of the plot, and I want the scale to go from 0 to 1.
Here's my code:
p <- qplot(subsetted$xvar, geom = "histogram", binwidth = .5, xlim= c(0, 100), main = "Histogram for Item 1")
Thanks!