commuteplots: Make Plots of Commute Times

Description Usage Arguments Details Value Note Author(s)

Description

Creating boxplots of commute times by day of the week, as well as creating a histogram of all commute times given.

Usage

1
2
commuteplots(commutedf,Leave="Left",Arrive="ArriveDesk",
Time="Total",Group="Day",timebins=6)

Arguments

commutedf

A dataframe of commute times. commutedf may have columns for time left and arrived, or a total time spent on road in minutes. A group column may also be included in commutedf, and the default is a character string, day of the week each time was collected. Any other columns will be unused by the function.

Leave

Time of departure column name. Default: "Left"

Arrive

Time of arrival column name. Default: "ArriveDesk"

Time

Total commute time column name. Default: "Total"

Group

Group name for analysis by factor. Default: "Day"

timebins

Integer for number of groups to split times into for k-means clustering. Default: 6.

Details

All plots are generated by ggplot2 and include generic, appropriate labels.

Value

Nothing is returned, but a boxplot, histogram, and sometimes scatter plot are generated.

Note

wubba lubba dub dub

Author(s)

David Burton, URMC Dept. of Biostatistics


Statgnome/commuteconvergence documentation built on May 28, 2019, 3:16 p.m.