doPlots: doPlots

Description Usage Arguments Details Value Examples

View source: R/doPlots.R

Description

Function to plot activity metrics

Usage

1
2
3
4
5
6
7
doPlots(
  data,
  xVariable = c("Distance", "Time")[2],
  showMe = NULL,
  doFacet = TRUE,
  sp = NULL
)

Arguments

data

an activity dataframe

xVariable

(character) the variable to put on the x axis. One of 'DistanceMeters' or 'Time'

showMe

(character) The metrics to include in the plot. Must be the same name as the column in the dataframe.

doFacet

(logical) TRUE to plot variables separetly, FALSE to plot them overlayed

sp

(list) the list of frame of splits, if plotting splits

Details

The function accepts a list of dataframes or a data frame created with createSplits() or dataLoader()

Value

A ggplot object

Examples

1
2
3
4
5
gpx <- evenActivity
doPlots(gpx)
doPlots(gpx, doFacet = TRUE)
sp<-autoSplits(gpx)
doPlots(gpx, sp = sp)

theasjblog/tcx_package documentation built on March 13, 2021, 2:24 a.m.