Plots the specified within and between design. See vignette("plots", package = "faux")
for examples and details.
A list of design parameters created by check_design() or a data tbl (in long format)
A list of factor names to determine visualisation (see vignette) in the order color, x, facet row(s), facet col(s)
A list of ggplot2 geoms to display, defaults to "pointrangeSD" (mean ± 1SD) for designs and c("violin", "box") for data, options are: pointrangeSD, pointrangeSE, violin, box, jitter
A brewer palette, defaults to "Dark2" (see ggplot2::scale_colour_brewer)
How to label the facets (see ggplot2::facet_grid). "label_value" is used by default.
plot
plot(design)
: Plotting from a faux design list
plot(faux)
: Plotting from a faux data table
within <- list(time = c("day", "night"))
between <- list(pet = c("dog", "cat"))
des <- check_design(within, between, plot = FALSE)
plot_design(des)
data <- sim_design(within, between, plot = FALSE)
plot_design(data)