[R] rotated histogram

Marc Schwartz marc_schwartz at comcast.net
Thu Dec 14 20:19:02 CET 2006


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



More information about the R-help mailing list