varefftheme | R Documentation |
Sets a theme for vareffects and other ggplot objects
varefftheme(type = c("minimal", "complete"))
library(ggplot2)
varefftheme()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.