[thierry.onkel...@inbo.be]
Sent: Friday, July 26, 2013 1:03 AM
To: John W. Clow; r-help@r-project.org
Subject: RE: GGplot 2 – cannot get histogram and box plot axis to match.
Dear John,
Use xlim() and ylim() instead of expand_limits()
library(ggplot2)
#sample data from ggplot2
data(Cars93
Problem:
I am trying to get the histogram and box plot x axis to match. I’ve tried using
the expand_limits function to make the axis match but that didn’t make the axis
match. The histogram’s axis are still consistently larger than the ones for the
box plot (though the function did help). Does a
2 matches
Mail list logo