plot_model_conditional_effects: Plot conditional effects for model

View source: R/plot_model_conditional_effects.R

plot_model_conditional_effectsR Documentation

Plot conditional effects for model

Description

Plot conditional effects for model

Usage

plot_model_conditional_effects(
  model,
  model_tag = NULL,
  effect = "treatment",
  plot_width = 6,
  plot_height = 6,
  output_base = "product/plots",
  verbose = FALSE,
  ...
)

Arguments

model

brmsfit object

model_tag

character tag for the model (Default: NULL)

plot_width

numeric dimensions of the output plot width (Default: 6)

plot_height

numeric dimensions of the output plot height (Default: 6)

output_base

character path to saveplots (Default: "product/plots")

verbose

logical verbose output (Default: FALSE)

...

additional arguments passed to brms::conditional_effects

effects

character main effects to plot (see brms::conditional_effects)

Value

ggplot2 object Saves the result to product/plots/firing_rate_by_neuron_<experiment_tag>_<date_code>.(pdf|png) It save both .pdf and .png because it's easier to email etc small pngs while for use in an a manuscript having the vector version means that it can be tweaked with illustrator


momeara/mema documentation built on Nov. 4, 2022, noon