Dear R list,

I am plotting a discrete valued number on the y axis against a continuous 
variable on the x axis.
To allow sample size to be viewed for the discrete groups I am using vertical 
jitter.
So my code is along the lines of
y<-rpois(500,2)
x<-rnorm(500,y,1)
plot(x,jitter(y))

It has not been suggested that a more informative view of the sample size might 
be if a histogram could be inserted into the plot (instead of the jittered rows 
of points) for the values at each y-value
Many thanks if anyone can think of a way to do this





This email may contain information that is privileged, confidential or 
otherwise protected from disclosure.
It must not be used by, or its contents copied or disclosed to, persons other 
than the addressee.
If you have received this email in error please notify the sender immediately 
and delete the email.
This message has been scanned for viruses.\ \ \         [[alter...{{dropped:6}}

______________________________________________
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