Skip to content

Changing the y-axis units of a lattice histogram

2 messages · Judith Flores, Sundar Dorai-Raj

#
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
#
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: