-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic visualisation #18
Milestone
Comments
Also food for thought (source): # install.packages("vistime")
library(vistime)
library(tidyverse)
library(lubridate)
# ?vistime
# d = read_csv("potential-projects/ofo/gantt.csv")
d = read.csv(stringsAsFactors = FALSE,text = "event,start,duration,group
compile datasets,0,2,descriptive analysis
baseline data,1,2,descriptive analysis
time of day,1,2,descriptive analysis
demographics,1,2,descriptive analysis
areas,1,1,visualisation
routes,1.5,1,visualisation
route networks,2,2,visualisation
comparison with census data,3,2,data analysis
comparison with university data,3,2,data analysis
comparison with PCT data,4,2,data analysis
demand,4,1.5,policy analysis
cycle network gaps,5,3,policy analysis
projecting growth,6,3,policy analysis
return zones,7,3,policy analysis
BikeHub-Ofo interaction,7,2,policy analysis
write-up and comparison with other projects,4,6,write-up")
start_date = as_date(lubridate::ymd("2018-05-01", tz = "GMT"))
d$start = start_date + d$start * 7
d$end = d$start + d$duration * 7
vistime(d, linewidth = 20) |
yay! |
I am thinking, push this back to v1.0. |
Reasonable. Or even a separate package like |
gantt npm package seems more mature and used. |
I see where you going with this, great idea but yes mindful of the #32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E.g. using an approach like
calendarPlot()
from the openair pkg that produces plots like this:There are +s and -s of using ggplot2 to consider. Not sure if there are good ways of doing it in base R package graphics. One for the backburner in any case.
The text was updated successfully, but these errors were encountered: