plotbar: Plot means and error bars for a single factor

Description Usage Arguments Value

View source: R/general_tools.r

Description

Plots a standard 'mean and error bar figure for levels of a single factor. Factors represented as continuous variables must be converted to an actual factor (using as.factor) before use.

Usage

1
plotbar(data, bar, factor, error)

Arguments

data

The dataset containing the values to be plotted.

bar

The column of the dataset representing the values to be averaged.

factor

The column representing the grouping factor.

error

The type of error value to be calculated. Options are "sd", "se" or "ci".

Value

A bar plot (dynamite plot) of means and error bars for a single factor.


robbriers/mytools documentation built on Dec. 12, 2020, 1:14 p.m.