How to add a chart title for gvisTimeline chart in R? -


i using googlevis plot timeline charts. here sample code example jason bryer's timeline package, showing presidents , uk prime ministers during world war ii. :

require(timeline) require(googlevis)  data(ww2) ww2$person <- gsub("\\n" ," ", ww2$person) plot(gvistimeline(ww2, barlabel="person", rowlabel="group",                        start="startdate", end="enddate",      options=list(width=590), chartid="ww2") ) 

my question: how add title timeline chart? tried following did not work:

plot(gvistimeline(ww2, barlabel="person", rowlabel="group",                            start="startdate", end="enddate",          options=list(width=590), title="timeline chart", chartid="ww2")     ) 

this not answer, note: annoyed required online connection of gvistimeline, re-build functionality using plotly:

install.packages("devtools") devtools::install_github("shosaco/vistime") vistime(ww2, events="person", groups="group", start="startdate", end="enddate", title="world war ii") 

enter image description here


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -