如何将googleVis中的gvis对象保存为png格式? ggvis有export_png函数,但该函数无法用于googleVis。
我看到有人问过类似的问题,但真的没有其他方法吗?
test_data <- data.frame(count=c(1,2,5),group=c("Australia","Austria","China"))
p <- gvisGeoMap(test_data,locationvar='group',numvar='count',options=list(dataMode='regions',colors="['0x0000ff', '0xff0000']"))
plot(p)