plot.dropterm: Dropterm plot method

Description Usage Arguments Value Examples

View source: R/stepAIC_BIC.R

Description

Dropterm plot method

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'dropterm'
plot(
  x,
  ...,
  horiz = TRUE,
  las = ifelse(horiz, 1, 2),
  fill = c("red", "steel blue"),
  colour = c("red", "steel blue"),
  show.model = TRUE
)

Arguments

x

An object of class "dropterm"

..., horiz

arguments past on to graphics::barplot

las

graphics parameter

fill, colour

barplot fill and border colour(s)

show.model

logical: should the model itself be displayed?

Value

x invisibly

Examples

1
2
3
4
5
fm <- lm(medv ~ . + (rm + tax + lstat)^2 +
           I((rm - 6)^2) + I((tax - 400)^2) + I((lstat - 12)^2), Boston)
d <- dropterm(fm, k = "bic")
plot(d)
plot(d, horiz = FALSE)

BillVenables/WWRUtilities documentation built on Jan. 26, 2021, 10:18 p.m.