plot.residualrwa: Plot for residualrwa objects

View source: R/plot_residualrwa.R

plot.residualrwaR Documentation

Plot for residualrwa objects

Description

Plot for residualrwa objects

Usage

## S3 method for class 'residualrwa'
plot(x, boot_ci, font_size = 12, ...)

Arguments

x

An object of class "residualrwa".

boot_ci

A boolean. Its value determines if the function draws or not the boostrap confidence. If misssing, then the function uses the value in x$boot_ci.

font_size

A numeric value. Overall font size. It uses the same mechanism as theme_cowplot.

...

Currently ignored.

Value

Returns a ggplot object

Examples


n <- 100
X1 <- rnorm(n)
X2 <- rnorm(n)
X3 <- rnorm(n)
Y <- X2^3 + 10 * X1 * X2
data <- as.data.frame(cbind(Y, X1, X2, X3))

ex <- residualrwa(
  response = "Y",
  control = NULL,
  fixed = NULL,
  free = c("X1", "X2", "X3"),
  data = data,
  include_interactions = TRUE,
  boot_ci = TRUE,
  n_boot = 5
)

plot(ex)


maikol-solis/residualrwa documentation built on Oct. 24, 2022, 7:52 a.m.