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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -