plot_i_distance {lifelogr}R Documentation

Plot distance over time.

Description

Plot distance over time in units of either miles or kilometers.

Usage

plot_i_distance(person, avg_to_get_typical_day = TRUE, unit = "mi")

Arguments

person

An instance of the Person class.

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.

unit

The unit of distance, 'mi' by default, but can also specify 'km'

Value

NULL, but plot prints to screen.

Examples

data(EX)
plot_i_distance(EX, FALSE)
plot_i_distance(EX, unit = "km")

[Package lifelogr version 0.1.0 Index]