lazy_plot: lazy_plot

View source: R/lazy_plot.R

lazy_plotR Documentation

lazy_plot

Description

This function provides means for plotting lazy models

Usage

lazy_plot(
  lazy_model,
  dv,
  ivs = NULL,
  fun.sum = mean,
  fun.error = sd,
  p.scale_fill_manual = NULL,
  p.basesize = 10,
  p.title = NULL,
  theme.fontfamily = NULL,
  na.rm = FALSE,
  position = "dodge",
  collapse_trials = FALSE
)

Arguments

lazy_model

the data in tidy format

dv

the name of the column containing the dependent variable

ivs

(optional) a vector of strings containing names of the columns identifying the independent variables to plot

fun.sum

(optional) the summary function to use. Defaults to mean.

fun.error

(optional) the error function to use. Defaults to sd.

p.scale_fill_manual

(optional) a color scale for the plot

p.basesize

(optional) font size of the plot

p.title

(optinal) a title

theme.fontfamily

(optional) a font for your plot. Must be registered using extrafont.

na.rm

(default = false) if NAs should be removed before plotting

position

= "dodge" (default = dodge) if NAs should be removed before plotting

collapse_trials

(default = false) if trials should be averaged per participant before plotting


flomuedev/summarize documentation built on May 22, 2024, 2:23 a.m.