plot_intraday: Switch table to plot intraday variables.

Description Usage Arguments Value See Also Examples

View source: R/viz_intraday.R

Description

Plot one continuous intraday variable across time. Users can specify if they want to look at an aggregate of a variable over the course of a day (avg_to_get_typical_day = TRUE) or look at that variable at every interval (i.e. every 15 minutes for the entire date range).

Usage

1
2
plot_intraday(person, measure_var = "all", avg_to_get_typical_day = TRUE,
  ...)

Arguments

person

An instance of the Person class

measure_var

Character vector of length 1 denoting the variable of interest. Options include: "steps", "floors", "distance", "caloriesBurned", "activeMin", "bpm" (heart rate), "weight". By default, all are plotted.

avg_to_get_typical_day

Logical vector of length 1. If TRUE, plot gives an aggregate of the variable over the course of a typical day. If FALSE, plot gives the variable at every interval over the range specified when the Person object was instantiated.

...

Extra arguments used to specify unit for the distance and weight plots.

Value

NULL, but plots print to screen

See Also

plot_intraday

Examples

1
2
3
4
5
6
data(EX)
plot_intraday(EX, "steps")
plot_intraday(EX, "distance", unit = "km")
plot_intraday(EX, "caloriesBurned", FALSE)
plot_intraday(EX, "steps", FALSE)
plot_intraday(EX, "bpm")

lifelogr documentation built on May 2, 2019, 6:11 a.m.