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)
aov(var.dep ~ var.grp)
var.dep
is grouped into the categories represented by var.grp
.TRUE
, the values reported are the true group mean values (see also sjt.grpmean
).
If FALSE
(default), the values are reported in the standard way, i.e. the values indicate the difference of
the group mean in relation to the intercept (reference group).title = ""
, no title is printed.TRUE
, order of categories (groups) is reversed."(Intercept)"
.type = "eff"
or
type = "slope"
in sjp.glm
), axis.lim
may
also be a list of vectors of length 2, defining axis limits for each
plot (only if non-faceted).sjp.grpfrq
.grid.breaks
'th position a major grid is being printed.hjust
and vjust
).TRUE
(default), a summary with chi-squared
statistics (see chisq.test
), Cramer's V or Phi-value etc.
is shown. If a cell contains expected values lower than five (or lower than 10
if df is 1), the Fisher's excact test (see fisher.test
) is
computed instead of chi-squared test. If the table's matrix is larger
than 2x2, Fisher's excact test with Monte Carlo simulation is computed.TRUE
(default), plots the results as graph. Use FALSE
if you don't
want to plot any graphs. In either case, the ggplot-object will be returned as value.plot
) as well as the data frame that
was used for setting up the ggplot-object (df
).
sjt.grpmean
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