Learn R Programming

sjPlot (version 2.0.0)

sjp.aov1: Plot One-Way-Anova tables

Description

Plot One-Way-Anova table sum of squares (SS) of each factor level (group) against the dependent variable. The SS of the factor variable against the dependent variable (variance within and between groups) is printed to the model summary.

Usage

sjp.aov1(var.dep, var.grp, meansums = FALSE, title = NULL,
  axis.labels = NULL, rev.order = FALSE, string.interc = "(Intercept)",
  axis.title = "", axis.lim = NULL, geom.colors = c("#3366a0", "#aa3333"),
  geom.size = 3, wrap.title = 50, wrap.labels = 25, grid.breaks = NULL,
  show.values = TRUE, digits = 2, y.offset = 0.1, show.p = TRUE,
  show.summary = FALSE, prnt.plot = TRUE)

Arguments

Value

(Insisibily) returns the ggplot-object with the complete plot (plot) as well as the data frame that was used for setting up the ggplot-object (df).

See Also

sjt.grpmean

Examples

Run this code
library(sjmisc)
data(efc)
# note: "var.grp" does not need to be a factor.
# coercion to factor is done by the function
sjp.aov1(efc$c12hour, efc$e42dep)

Run the code above in your browser using DataLab