plot_response: Plot output from 'response()'

Description Usage Arguments

Description

A mean and confidence interval is plotted by group. The axes are flipped so that groups are displayed on the y-axis, with response on the x-axis. A vertical dashed line shows the overall mean of the data. Colours indicate whether the confidence interval crosses the global mean (blue), or is entirely above it (green) or below it (red).

Usage

1
plot_response(data, order_n = FALSE, response_lim = NULL)

Arguments

data

Data frame. Output from response().

order_n

Logical. If TRUE, groups are ordered by number of observations.

response_lim

Optional x axis limits passed to ggplot() e.g. c(0,1).


jedwards24/response documentation built on Jan. 14, 2022, 5:35 p.m.