ggally_nostic_resid: ggnostic - residuals

Description Usage Arguments Value See Also Examples

View source: R/ggnostic.R

Description

If non-null pVal and sigma values are given, confidence interval lines will be added to the plot at the specified pVal percentiles of a N(0, sigma) distribution.

Usage

1
2
3
4
5
6
ggally_nostic_resid(data, mapping, ..., linePosition = 0,
  lineColor = brew_colors("grey"), lineSize = 0.5, lineAlpha = 1,
  lineType = 1, lineConfColor = brew_colors("grey"),
  lineConfSize = lineSize, lineConfAlpha = lineAlpha, lineConfType = 2,
  pVal = c(0.025, 0.975), sigma = attr(data, "broom_glance")$sigma,
  se = TRUE, method = "auto")

Arguments

data, mapping, ...

parameters supplied to ggally_nostic_line

linePosition, lineColor, lineSize, lineAlpha, lineType

parameters supplied to ggplot2::geom_line

lineConfColor, lineConfSize, lineConfAlpha, lineConfType

parameters supplied to the confidence interval lines

pVal

percentiles of a N(0, sigma) distribution to be drawn

sigma

sigma value for the pVal percentiles

se

boolean to determine if the confidence intervals should be displayed

method

parameter supplied to ggplot2::geom_smooth. Defaults to "auto"

Value

ggplot2 plot object

See Also

stats::residuals

Examples

1
2
dt <- broomify(stats::lm(mpg ~ wt + qsec + am, data = mtcars))
ggally_nostic_resid(dt, ggplot2::aes(wt, .resid))

Example output

Loading required package: broom
Warning messages:
1: Deprecated: please use `purrr::possibly()` instead 
2: Deprecated: please use `purrr::possibly()` instead 
3: Deprecated: please use `purrr::possibly()` instead 
4: Deprecated: please use `purrr::possibly()` instead 
5: Deprecated: please use `purrr::possibly()` instead 
`geom_smooth()` using method = 'loess'

GGally documentation built on May 18, 2018, 1:08 a.m.