Skip to content
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

Open
Robinlovelace opened this issue Sep 26, 2018 · 8 comments
Open

Basic visualisation #18

Robinlovelace opened this issue Sep 26, 2018 · 8 comments
Milestone

Comments

@Robinlovelace
Copy link
Member

E.g. using an approach like calendarPlot() from the openair pkg that produces plots like this:

image

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.

@Robinlovelace Robinlovelace added this to the 0.2.0 milestone Sep 26, 2018
@Robinlovelace
Copy link
Member Author

Robinlovelace commented Sep 26, 2018

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)

image

@layik
Copy link
Member

layik commented Sep 26, 2018

yay!

@layik
Copy link
Member

layik commented Sep 27, 2018

I am thinking, push this back to v1.0.

@Robinlovelace
Copy link
Member Author

Reasonable. Or even a separate package like icalviz to keep things modular.

@layik
Copy link
Member

layik commented Jan 28, 2019

@Robinlovelace
Copy link
Member Author

@Robinlovelace
Copy link
Member Author

gantt npm package seems more mature and used.

@layik
Copy link
Member

layik commented Feb 11, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants