plot_ln_grp | R Documentation |
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.
plot_ln_grp(dataframe, xvar, yvar, grp_var = "focal_animal")
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". |
A ggplot object which may be further customised with e.g. theme() options.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.