paper/make_figs.R

# --------------------
library(parameters)

model <- lm(Sepal.Length ~ Species, data = iris)
parameters(model)

# --------------------
library(see)

lm(Sepal.Length ~ Petal.Width * Species, data = iris) %>%
  parameters() %>%
  plot()

# save
p <- lm(Sepal.Length ~ Petal.Width * Species, data = iris) %>%
  parameters() %>%
  plot()

ggplot2::ggsave("figure3.png", p, height = 5, width = 7)
easystats/parameters documentation built on April 27, 2024, 7:28 p.m.