I'm trying just to do the x-barplot + scatterplot from the layout example.

The barplot does not come out aligned horizontally with the scatter plot,
although I am passing in the same xlim to both. 

When I run the example it comes out correctly. I haven't figured out what
I'm doing differently, except that my layout is just two regions, one above
the other, rather than 4 regions. 

Any ideas what might be wrong? Or suggestions for a simpler/more robust way
to plot a histogram alongside a scatterplot, with x-axes aligned? 

Another question, is there a simple way to make the bars go down instead of
up (so putting the histogram underneath the scatter plot they would
essentially share a common x axis?)

Thanks

-- 
View this message in context: 
http://www.nabble.com/problem-aligning-barplot-and-scatter-plot-%28ala-%27layout%27-example%29-tp24432689p24432689.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to