boxplotTwoFactors: Plot a boxplot with 2 factors

Description Usage Arguments

View source: R/PlotsGeneric.R

Description

Just a wrapper around boxplot function. To set which level is plot first, consider using the function factor and set the argument levels.

Usage

1
2
3
4
boxplotTwoFactors(data, dv = "vd", iv1 = "vi1", iv2 = "vi2",
  colors = c("red", "gray", "red", "gray"), ylim = c(0, 1), ylab = "",
  outma = c(0.5, 1, 0.5, 1), margin = c(1, 2, 1, 1), mgp = c(1, 0.2, 0),
  legend.text = "", legend.color = "", legend.xy = "", ...)

Arguments

data

data.frame with the data

dv

Dependent variable. The one you want on the y-axis

iv1

First independent variable

iv2

Second independent variable

colors

Colors of the bars of the boxplot

ylim

Limit of y axis

ylab

Label of y axis

outma

outma for setting par

margin

margin for setting par

mgp

mgp for setting par

legend.text

Text for the legend

legend.color

List of color for the legend

legend.xy

x and y position of the legend

...

passed to graphics::boxplot function


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.