ramnathv / rCharts

Interactive JS Charts from R
http://rcharts.io
Other
1.19k stars 655 forks source link

Faceted Gantt Chart/Plot #266

Open trinker opened 11 years ago

trinker commented 11 years ago

@ramnathv A big plot I use in my work is to view discourse as a faceted Gantt chart as seen here:

I have utilized ggplot2 to take a dataset like this, and generate the faceted plot using:

library(devtools)
install_github("qdapDictionaries", "trinker")
install_github("qdap", "trinker")
library(qdap)

with(pres_debates2012, gantt_plot(dialogue, person, time, xlab = "duration(words)", 
    scale = "free"))

Something that has always been missing is the inclusion of the actual text/dialogue but it seems this could be accomplished with rCharts similar to how you encode values for bars within a bar chart.

I am just starting to look at rCharts but don't really know if I can do this with rCharts yet or how to begin.

Questions:

  1. Is this doable in rcharts yet?
  2. If so how could I approach this problem.

Here is the data set with the text variable as a csv file.

ramnathv commented 11 years ago

I would look for a d3js gantt chart library like this and then use the ideas presented here to integrate it with rCharts.

When I have time, I will take a deeper look, but if you find js based gantt chart libraries, post links here.