Skip to contents

Sets a theme for varpred and other ggplot objects

Usage

varpredtheme(type = c("minimal", "complete"))

Arguments

type

a character string. If minimal simple theme is applied, otherwise complete.

Examples

library(ggplot2)
varpredtheme()
set.seed(4567)
x <- rnorm(100, 3, 5)
y <- 0.4 + 0.7*x + rnorm(100)
df <- data.frame(y = y, x = x)
m1 <- lm(y ~ x, df)

pred1 <- varpred(m1, "x")
plot(pred1)