Skip to contents

Adds the units' points as a point set (qeviz::qe_points()) and their mean with its confidence interval as a group mean (qeviz::qe_group()). Call it once per group of units to compare, with points and points_color.

Usage

units(
  x,
  ...,
  points = NULL,
  points_color = "#FF0000",
  show_points = TRUE,
  show_mean = TRUE,
  with_ci = TRUE,
  point_shape = "circle",
  name = NULL,
  label = NULL
)

Arguments

x

An ena.ordered.set, or a plot of one from plot.ena.ordered.set().

...

Passed to qeviz::qe_points() (e.g. size, labels).

points

The points to draw, default all of set$points; a subset such as set$points$Condition$FirstGame draws one group.

points_color

Colour of the points and their mean.

show_points

Whether to draw the points.

show_mean

Whether to draw their mean.

with_ci

Whether to draw the mean's 95% confidence interval.

point_shape

"circle", "square", "triangle" or "diamond".

name

Name of the point set; default "points 1", "points 2", ...

label

Label of the mean; default "mean 1", "mean 2", ...

Value

The plot, with the points and mean added.