向 gvisGeoChart 添加标题
Adding a title to gvisGeoChart
我在向 googlevis 包中的 gvisGeoChart 添加标题时遇到问题。
这是我使用的代码:
test <- gvisGeoChart(state.data[["MA"]], locationvar = 'Location', colorvar = 'RateofLVP',
options=list(region="US-MA",
displayMode="markers",
resolution="provinces",
width=600, height=400,
title='TESTING MAPS',
colorAxis="{values:[1, 5],
colors:[\'yellow',\'red']}"))
当我运行此代码时,它会生成正确的地理图表,但图表顶部没有标题。感谢您的帮助!
我想出了一个可能的解决方案,我可以用 html 格式的标题代码替换 googleVis 图表 header 部分中的文本。感谢您的帮助!
我在向 googlevis 包中的 gvisGeoChart 添加标题时遇到问题。
这是我使用的代码:
test <- gvisGeoChart(state.data[["MA"]], locationvar = 'Location', colorvar = 'RateofLVP',
options=list(region="US-MA",
displayMode="markers",
resolution="provinces",
width=600, height=400,
title='TESTING MAPS',
colorAxis="{values:[1, 5],
colors:[\'yellow',\'red']}"))
当我运行此代码时,它会生成正确的地理图表,但图表顶部没有标题。感谢您的帮助!
我想出了一个可能的解决方案,我可以用 html 格式的标题代码替换 googleVis 图表 header 部分中的文本。感谢您的帮助!