问题
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