lgby: lgby

Description Usage Arguments Examples

View source: R/lgby.R

Description

This function quickly executes the aggregate and ggplot functions to produce a simple line graph with separate lines based on an indicated group.

Usage

1
2
lgby(df, x, y, by, facet_var, grid_var, error_bars = TRUE, dodge = 1,
  error_bar_width = 1)

Arguments

df

A dataframe.

x

The variable to appear on the x-axis.

y

The variable to appear on the y-axis.

by

The grouping variable.

facet_var

The facet-grouping variable.

grid_var

The grid-grouping variable. When using grid_var, it is essentially interchangable with facet_var, as together they determine the order and axis of the grid. grid_var cannot be used independently of facet_var for obvious reasons.

error_bars

Include standard error bars?

error_bar_width

Error bar width

Examples

1
lgby()

fiksdala/fiksdal documentation built on Jan. 9, 2022, 10:54 p.m.