line_compare: Compares moving averages of a variable for two datasets over...

Description Usage Arguments Value Examples

View source: R/data_analysis.R

Description

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

Usage

1
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

1
2
3
4
# 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)

animaltracker documentation built on Nov. 18, 2020, 1:08 a.m.