plotmeans: plotmeans1

View source: R/plotmeans.R

plotmeansR Documentation

plotmeans1

Description

plotmeans1

Usage

plotmeans(d, m, iv, ivp, dv, plt = TRUE)

Arguments

d

a data frame.

m

a lmer model i.e "tr + p + (1|a)".

iv

indepent variable of the model to compute the emmeans and standard error of the mean i.e. "tr".

ivp

in case there are multiple iv for the test, you can select a single one of interest to show significant difference of letters. If not selected it will use the first one provided.

dv

1 dependent variable of interest i.e "var1"

Value

A column plot with least square means (column) and the standard error (error bars) and the statistical difference with a Tukey test (letters). Letters will be black if the anova's p-value for the model is significant, if the anova return p-value between 0.05 and 0.10 letters are orange, and if the p-value is above 0.10 the letters are red.


giuliogiagnoni/autheme documentation built on July 29, 2023, 4:43 a.m.