Remove footers from googleVis output

霸气de小男生 提交于 2020-01-14 14:25:50

问题


Is there a way to remove or hide the footer from the googleVis output? Here is what shows up in every googleVis output.

Data: sport • Chart ID: TimelineID95891e64f3 • googleVis-0.5.10
R version 3.2.3 (2015-12-10) • Google Terms of Use • Documentation and Data Policy


回答1:


create your visualization

M <- gvisColumnChart(data, xvar = "", yvar = "", options = list(), chartid)

then remove the footers and captions

M$html$footer <- NULL
M$html$jsFooter <- NULL
M$html$caption <- NULL

then print or plot the chart

print(M,tag = "html" ,file = "M.html") 
plot(M)



回答2:


You can customize the jsFooter by setting a global option. Here I have set the the plot.tag to chart and jsFooter to NULL which removes the footer entirely.

op <- options(gvis.plot.tag="chart", jsFooter=NULL)

Use getOption("gvis.tags") to see a list of additional tags you can customize.



来源:https://stackoverflow.com/questions/34969741/remove-footers-from-googlevis-output

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!