barchart

0th

Percentile

Bar Graphs

Draw Bar plots

Keywords
hplot
Usage
barchart(formula,
         data = parent.frame(), 
         panel = panel.barchart,
         box.ratio =2,
         ...)
Arguments
formula
a formula describing the form of conditioning plot. A formula of the form y ~ x | g1 * g2 * ... indicates that plots of y versus x should be produced conditional on the variable g1,g2,....
panel
panel function to be used to draw panels
data
data frame for the variables in the formula etc
box.ratio
ratio of bar width to inter bar width
...
other arguments
Details

see the documentation for trellis.args.

Value

  • An object of class ``trellis'', plotted by default by print.trellis.

Note

The x-axis limits might not be meaningful. The bars are drawn from the extreme left of the panel, whatever be the x-limits.

synopsis

barchart(formula, data = parent.frame(), panel = "panel.barchart", prepanel = NULL, strip = TRUE, box.ratio = 2, groups = NULL, ..., subset = TRUE)

See Also

trellis.args, panel.barchart,Lattice

Aliases
  • barchart
Examples
data(barley)
barchart(variety ~ yield | year * site, data = barley, aspect = 0.4,
        xlab = "Barley Yield (bushels/acre)")
Documentation reproduced from package lattice, version 0.3-1, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.