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