paired: plot paired data

Description Usage Arguments Value Examples

Description

boxplot + paired data connected with points

Usage

1
2
paired(x, y, lab = NA, box_thickness = 0.2, plot_points = T,
  colors = c("#440154FF", "#21908CFF"), line_color = "#00000050", ...)

Arguments

x

first vector or data frame with at least two columns

y

second vector. length(x) must equal length(y) for the data to be paired. If y is left blank, x must be a dataframe with at least two columns. paired() assumes that the first two columns are the paired data. If x and y are both dataframes, paired() assumes the paired data are the first columns of each dataframe.

lab

labels for groups

box_thickness

thickness of the boxes of your boxplots

colors

colors of the data points. defaults to viridis colors

line_color

color of the lines to connect paired observations

...

other arguments to pass to par()

plot_data

logical. plot the data be plotted as points at the tips of each line

Value

none

Examples

1
paired(rnorm(10,5), rnorm(10,7), lab = c("X", "X_paired"), ylab = "measurement", main="paired() example")

lukereding/redingPlot documentation built on May 21, 2019, 8:58 a.m.