Description Usage Arguments Details Value Note Author(s)
Creating boxplots of commute times by day of the week, as well as creating a histogram of all commute times given.
1 2 | commuteplots(commutedf,Leave="Left",Arrive="ArriveDesk",
Time="Total",Group="Day",timebins=6)
|
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. |
All plots are generated by ggplot2 and include generic, appropriate labels.
Nothing is returned, but a boxplot, histogram, and sometimes scatter plot are generated.
wubba lubba dub dub
David Burton, URMC Dept. of Biostatistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.