Description Usage Arguments Value Functions See Also Examples
Provides a "quick-and-dirty" approach to plotting a line graph for a single continuous variable using defaults for axis and title labels. 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).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | plot_i(person, measure_var, avg_to_get_typical_day = TRUE)
plot_i_steps(person, avg_to_get_typical_day = TRUE)
plot_i_floors(person, avg_to_get_typical_day = TRUE)
plot_i_cal(person, avg_to_get_typical_day = TRUE)
plot_i_active_min(person, avg_to_get_typical_day = TRUE)
plot_i_hr(person, avg_to_get_typical_day = TRUE)
plot_i_hr_datetime(person)
plot_i_weight(person, avg_to_get_typical_day = TRUE, unit = "lb")
|
person |
An instance of the Person class |
measure_var |
character vector denoting the variables of interest. Options are one or more of: "steps", "floors", "distance", "caloriesBurned","bpm" (heart rate), "weight". |
avg_to_get_typical_day |
Logical variable "daily" for an aggregate of the variable over the course of a day, or "intraday" for the variable at every interval over the range. Default is TRUE. |
unit |
Unit of measurement for plot_i_weight(). Default is "lb", but "kb" can also be specified |
ggplot object
plot_i_steps
: Line graph for steps taken per 15 minute interval over
date-time.
plot_i_floors
: Line graph for floors gone up per 15 minute interval over
date-time.
plot_i_cal
: Line graph for calories burned per 15 minute interval over
date-time.
plot_i_active_min
: Line graph for active minutes per 15 minute interval over
date-time.
plot_i_hr
: Line graph for heart rate per 5 minute interval across a
typical day or over date-time.
plot_i_hr_datetime
: Line graph for heart rate per 5 minute interval across a
typical day.
plot_i_weight
: Line graph for weight over time.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.