Learn R Programming

agsemisc (version 1.3-1)

plothelpers: Plot helper functions

Description

a.resetplotparams() sets colors and plotting parameters suitable for document production. plotfit(fit, ...) plots an lm object using mfrow=c(2,3) prepanel.0 Lattice prepanel function that forces that zero be included on both axes. Does nothing for non-numeric axes (such as the factor axis in bwplot).

Arguments

Details

Type the name of a function to see its source code for details.

See Also

trellis.par.set, plot.lm, Lattice, prepanel.lmline.

Examples

Run this code
data(iris)
a.resetplotparams()
print(bwplot(Species~Sepal.Length, data=iris, panel=panel.bwstrip,
             prepanel=prepanel.0))
plotfit(lm(Sepal.Length~Sepal.Width, data=iris))

Run the code above in your browser using DataLab