Learn R Programming

animaltracker (version 0.2.0)

line_compare: Compares moving averages of a variable for two datasets over time, grouped by GPS GPS, Date, and col columns should match

Description

Compares moving averages of a variable for two datasets over time, grouped by GPS GPS, Date, and col columns should match

Usage

line_compare(correct, candidate, col, export = FALSE, out = NULL)

Arguments

correct

reference data frame

candidate

data frame to be compared to the reference

col

variable to plot the moving average for

export

logical, whether to export plot, defaults to False

out

.png file name to save plot when export is True

Value

faceted line plot of moving averages over time grouped by GPS

Examples

Run this code
# NOT RUN {
# Faceted line plot comparing moving averages over time 
# grouped by GPS for unfiltered and filtered demo data
## Set distance as the y axis
line_compare(demo_unfiltered, demo_filtered, Distance)
# }

Run the code above in your browser using DataLab