On Thu, 2006-12-14 at 13:53 -0500, steve wrote:
> I would like to make a scatterplot, with a histogram of the x and y 
> variables above and to the right . I can use layout to set up the areas, 
> and hist(x,y) works fine for the upper histogram. However, I need a 
> rotated histogram on the right, and I don't know how to do this. I've 
> seen a solution with a bar plot on the right, but I'd like to use a 
> histogram. Do you know how I can do this?
> 
> Steve

What's wrong with the example in ?layout below the comment:

##-- Create a scatterplot with marginal histograms -----

?

HTH,

Marc Schwartz

______________________________________________
[email protected] 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