plot_ln_grp: Plot line graph by group

View source: R/plot_ln_grp.R

plot_ln_grpR Documentation

Plot line graph by group

Description

Plots a line graph connecting mean e.g. hormone values per day/week/month per subject. Manullay scales point shape and colour of up to 14 subjects so that each is easily identifiable.

Usage

plot_ln_grp(dataframe, xvar, yvar, grp_var = "focal_animal")

Arguments

dataframe

a data frame or tibble

xvar

variable to plot on the x axis, as a character string

yvar

variable to plot on the y axis, as a character string. NA values are silently dropped.

grp_var

variable to group by, as a character string. Default set to "focal_animal".

Value

A ggplot object which may be further customised with e.g. theme() options.


avrincon/phdfuns documentation built on Nov. 13, 2022, 10:34 a.m.