Learn R Programming

googleVis (version 0.5.2)

gvisGeoMap: Google Geo Map with R googleChartName <- "geomap" gvisChartName <- "gvisGeoMap"

Usage

gvisGeoMap(data, locationvar = "", numvar = "", hovervar = "",
  options = list(), chartid)

Arguments

data
data.frame. The data has to have at least two columns with location name (locationvar), value to be mapped to location (numvar) and an optional variable to display any text while the mouse hovers over the loc
locationvar
column name of data with the geo locations to be analysed. The locations can be provide in two formats:

[object Object],[object Object]

numvar
column name of data with the numeric value displayed when the user hovers over this region.
hovervar
column name of data with the additional string text displayed when the user hovers over this region.
options
list of configuration options. The options are documented in detail by Google online: [results=rd]{gsub("CHARTNAME", googleChartName, readLines(file.path(".", "inst", "mansections", "GoogleChartToolsURLConfigOptions.txt")))}

[resu