Learn R Programming

lifelogr (version 0.1.0)

plot_distance: Plot distance per day over time.

Description

Prints a line plot plotting distance in miles or kilometers per day over time.

Usage

plot_distance(person, unit = "mi")

Arguments

person
An instance of the Person class
unit
a unit of distance, 'mi' or 'km'. The default value is 'mi'

Value

NULL, but plot printed to screen

Examples

Run this code
data(EX)
plot_distance(EX)
plot_distance(EX, "mi")
plot_distance(EX, "km")

Run the code above in your browser using DataLab