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")
Comments
Post a Comment