Learn R Programming

cheddar (version 0.1-626)

PlotHelpers: Plot helpers

Description

Functions that are useful for customising plots and for creating your own plot functions.

Usage

Log10BLabel(community, name = "italic(B)", units = with(CPS(community), 
            paste(M.units, "~", N.units)))
Log10MLabel(community, name = "italic(M)", units = CPS(community)$M.units)
Log10NLabel(community, name = "italic(N)", units = CPS(community)$N.units)

DefaultCategoryColours() DefaultCategoryLabelColours() DefaultCategorySymbols() DefaultLinkColour()

PlaceMissingPoints(x, xlim, y, ylim)

LMabline(model, ...) PlotLinearModels(models, colour.spec, col, ...) FormatLM(model, slope.95.ci = FALSE, ci.plus.minus.style = FALSE, r = FALSE, r.squared = TRUE, model.var.names = TRUE, dp = 2)

Arguments

community
an object of class Community.
name
the name that appears in the label.
units
the units that appears in the label.
x
x values.
y
y values.
xlim
limits of the x axis.
ylim
limits of the y axis.
models
a list of lm objects to be plotted.
colour.spec
either NULL or a named vector that maps values of colour.by to plotting values; defaults to the vector returned by DefaultCategoryColours.
col
plot colours.
model
an lm object for which a textual description is assembled.
slope.95.ci
logical - if TRUE then the 95% confidence intervals are included in the description.
ci.plus.minus.style
logical - if TRUE then the 95% confidence intervals are shown by a `plus-minus' sign. If FALSE then the confidence intervals are shown by an upper and lower bound.
r
logical - if TRUE then `r' is included in the description.
r.squared
logical - if TRUE then `r squared' is included in the description.
model.var.names
logical - if TRUE then the names of the dependent and independent variables fitted in the model are included in the description. If FALSE, the names `x' and `y' are used.
dp
the number of decimal places to which values are presented.
...
other values passed to plotting functions.

See Also

Community, DefaultCategoryColours, NvMLinearRegressions, LinearRegressionByClass, lm