plot_iterations: Plot the cumulative frequency of stimuli generated

View source: R/plot_iterations.R

plot_iterationsR Documentation

Plot the cumulative frequency of stimuli generated

Description

Plots iterations by number of items generated, when given a dataframe which has been passed through generate().

Usage

plot_iterations(df, line_width = 1)

Arguments

df

Output from generate() or long_format()

line_width

Thickness of lines (default = 1)

Value

A ggplot object showing how conditions differ in independent variables, and are matched for in controls.

Examples


stim <- lexops |>
  dplyr::filter(PK.Brysbaert >= .75) |>
  split_by(BG.SUBTLEX_UK, 0.001:0.003 ~ 0.009:0.011) |>
  split_by(CNC.Brysbaert, 1:2 ~ 4:5) |>
  control_for(Zipf.SUBTLEX_UK, -0.2:0.2) |>
  control_for(Length) |>
  generate(n = 50, match_null = "balanced")
plot_iterations(stim)


JackEdTaylor/LexOPS documentation built on Oct. 11, 2024, 10:38 p.m.