autoplot.linval: Plots a previously created linval object

Description Usage Arguments Examples

View source: R/linval.r

Description

Plots a previously created linval object

Usage

1
2
## S3 method for class 'linval'
autoplot(x, hierarchy = . ~ ., geom = NULL)

Arguments

x

is this is the name of the previously created linval object.

geom

geom to use. Guess automatically based on whether the predictor is on the y-axis (the default), or elsewhere.

hierarchy

override the ordering of variables from the model. Combined with the original formula using update.formula so you use can . as a place holder.

Examples

1
2
3
4
5
6
7
8
d_quantiles <- linval(price ~ carat + color + clarity, data = diamonds,
  reduction = "qgrid", bins = 4)

autoplot(d_quantiles)

# Use the second argument to rearrange the order of variables
autoplot(d_quantiles, . ~ color + clarity + carat)
autoplot(d_quantiles, color ~ clarity + price + .)

hadley/linval documentation built on May 17, 2019, 10:42 a.m.