xtras: Augmented functions

Description Usage Arguments Author(s) See Also Examples

Description

These functions all behave similarly to the functions with the initial x removed from their names.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
xplot(x, ...)

xplot.default(...)

xplot.lm(x, which = c(1L:3, 5), 
	caption = list("Residuals vs Fitted", "Normal Q-Q", "Scale-Location", "Cook's distance", "Residuals vs Leverage", "Cook's distance vs Leverage"), 
	panel.default = if (add.smooth) panel.xyplotsmooth else panel.xyplotpoints, 
	sub.caption = NULL, main = "", print.plots = TRUE, 
	ask = 1 < length(which) && dev.interactive(), 
	type = "p", pch = trellis.par.get("plot.symbol")$pch, 
	addline.col = trellis.par.get("add.line")$col, 
	line.col = trellis.par.get("plot.line")$col, 
	symbol.col = trellis.par.get("plot.symbol")$col, 
	lty = trellis.par.get("superpose.line")$lty, ..., id.n = 3, 
	labels.id = names(residuals(x)), cex.id = 0.7, 
	qqline = TRUE, cook.levels = c(0.5, 1), add.smooth = TRUE, 
	label.pos = c("left", "right"), cex.caption = 1)

Arguments

...

arguments passed to other functions.

x

A numeric vector or formula.

which

A numeric vector indicating which plots to produce

panel.default

default panel function

sub.caption

secondary caption

main, type, pch, lty, qqline, caption, print.plots, ask, addline.col, line.col, symbol.col, id.n, labels.id, cex.id, cook.levels, add.smooth, label.pos, cex.caption, plot, panel

to be documented

Author(s)

Randall Pruim

See Also

plot.

Examples

1
2
x <- runif(20)
xplot( lm ( 2*x + 5 + rnorm(20) ~ x ) )

Example output

Loading required package: mosaic
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Loading required package: lattice
Loading required package: ggformula
Loading required package: ggplot2

New to ggformula?  Try the tutorials: 
	learnr::run_tutorial("introduction", package = "ggformula")
	learnr::run_tutorial("refining", package = "ggformula")
Loading required package: mosaicData
Loading required package: Matrix

The 'mosaic' package masks several functions from core packages in order to add 
additional features.  The original behavior of these functions should not be affected by this.

Note: If you use the Matrix package, be sure to load it BEFORE loading mosaic.

Attaching package: 'mosaic'

The following object is masked from 'package:Matrix':

    mean

The following objects are masked from 'package:dplyr':

    count, do, tally

The following objects are masked from 'package:stats':

    IQR, binom.test, cor, cor.test, cov, fivenum, median, prop.test,
    quantile, sd, t.test, var

The following objects are masked from 'package:base':

    max, mean, min, prod, range, sample, sum

Loading required package: mosaicCalc
Loading required package: mosaicCore

Attaching package: 'mosaicCalc'

The following object is masked from 'package:stats':

    D


Attaching package: 'fastR'

The following object is masked from 'package:graphics':

    panel.smooth

fastR documentation built on May 2, 2019, 5:53 p.m.