mPlot(data, format, default = format, system = c("lattice", "ggplot2"), show = FALSE, title = "", data_text = expr_text(data), ...)
mMap(data, default = "map", system = "ggplot2", show = FALSE, title = title, data_text = expr_text(data), ...)
mScatter(data, default = c("scatter", "jitter", "boxplot", "violin", "line"), system = c("lattice", "ggplot2"), show = FALSE, title = "", data_text = lazyeval::expr_text(data))
mUniplot(data, default = c("histogram", "density", "frequency polygon", "ASH plot"), system = c("lattice", "ggplot2"), show = FALSE, title = "", data_text = expr_text(data))object is an lm, subsets
of these arguments are passed to grid.arrange and to the
lattice plotting routines; in particular,
nrow and ncol can be used to control the number of rows
and columns used.ask == FALSE, all plots will be
displayed together.TRUE (for all rows), or a character vector of row names."scatter",
"jitter",
"boxplot",
"violin",
"histogram",
"density",
"frequency polygon",
or
"map".
Unique prefixes suffice.TRUE, the code will be displayed each time the plot is
changed."pval", "diff", or "asis" determining the
order of the pair factor, which determines the order in which the differences
are displayed on the plot.sp2df for one way to create such
a data frame. Typically merge will be used to combine the map
data with some auxilliary data to be displayed as fill color on the map, although
this is not necessary if all one wants is a map.default."scatter",
"jitter",
"boxplot",
"violin",
"histogram",
"density",
"frequency polygon",
"xyplot",
or
"map". Unique prefixes suffice.TRUE, the code will be displayed each time the plot is
changed.eval(). Typically users will not need to
modify this from the default value.mPlot is required by end users. The other plotting functions
are dispatched based on the value of default. Furthermore, mplot
will dispatch mPlot when provided a data frame.Currently maps are only supported in ggplot2 and not in lattice.
## Not run:
# mPlot(HELPrct, format="scatter")
# mPlot(HELPrct, format="density")
# ## End(Not run)
Run the code above in your browser using DataLab