plot_time_metrics: Plot metric vs time

View source: R/plots.R

plot_time_metricsR Documentation

Plot metric vs time

Description

Plot metric vs time

Usage

plot_time_metrics(dataset, metric, scales = "fixed")

Arguments

dataset

Data frame to use for plot. It must contain at least one character column named "Run_date" (yy-mm-dd) and one character column named "Sample".

metric

Character vector length 1 with the name of the metric to plot (metric should be one of the column names of dataset)

scales

Parameter to be passed to facet_wrap. It determines whether all axes are fixed for all panels in a plot (one panel per genus/species). It can take the values: 'fixed' (default), 'free_x' (y fixed and x different per panel), 'free_y' (x fixed and y different per panel) or 'free'(both free).

Value

ggplot object containing the plot to be added


AleSR13/refsampr documentation built on May 30, 2022, 5:42 a.m.