## S3 method for class 'table':
barchart(x, data, groups = TRUE,
origin = 0, stack = TRUE, \dots, horizontal = TRUE)## S3 method for class 'array':
barchart(x, data, \dots)
## S3 method for class 'matrix':
barchart(x, data, \dots)
## S3 method for class 'table':
dotplot(x, data, groups = TRUE, \dots, horizontal = TRUE)
## S3 method for class 'array':
dotplot(x, data, \dots)
## S3 method for class 'matrix':
dotplot(x, data, \dots)
table
, array
or matrix
object.panel.barchart
controlling the display. The
defaults for the table
method are different.formula
method.t
or aperm
). For more flexibility, use
the formula method after converting the table to a data frame using
the relevant as.data.frame
method.barchart
, t
, aperm
,
table
, panel.barchart
,
Lattice
barchart(Titanic, scales = list(x = "free"),
auto.key = list(title = "Survived"))
Run the code above in your browser using DataLab