[R] rotated histogram

steve fisk at bowdoin.edu
Thu Dec 14 22:06:53 CET 2006


I guess it's ok; I was wondering why there is no argument to hist that 
allows rotation (e.g. rotated=TRUE)

Steve


Marc Schwartz wrote:
 > 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 -----
 >
 > ?



More information about the R-help mailing list