Hello, I need to multiply the number of counts in the y-axis of a lattice histogram by a constant factor, such that the plot would represent a different type of variable plotted in the y-axis, not counts. Can this be done? Thank you, Judith
Sundar Dorai-Raj
2009-Apr-03 21:14 UTC
[R] Changing the y-axis units of a lattice histogram
Try:
library(lattice)
histogram( ~ height | voice.part,
data = singer, type = "c",
scales = list(y list(at = seq(0, 20, 5),
labels = seq(0, 200, 50))))
HTH,
--sundar
On Fri, Apr 3, 2009 at 2:01 PM, Judith Flores <juryef at yahoo.com>
wrote:>
> Hello,
>
> ? I need to multiply the number of counts in the y-axis of a lattice
histogram by a constant factor, such that the plot would represent a different
type of variable plotted in the y-axis, not counts. Can this be done?
>
> Thank you,
>
> Judith
>
> ______________________________________________
> R-help at 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.
>