Learn R Programming

googleVis (version 0.5.2)

gvisGeoChart: Google Geo Chart with R googleChartName <- "geochart" gvisChartName <- "gvisGeoChart"

Usage

gvisGeoChart(data, locationvar = "", colorvar = "", sizevar = "",
  hovervar = "", options = list(), chartid)

Arguments

data
a data.frame. The data has to have at least one column with location name (locationvar), value to be mapped to location. The format of the data varies depending on which display mode that you use: Regions or Markers.
locationvar
column name of data with the geo locations to be analysed. The locations can be provide in two formats: [object Object],[object Object]
colorvar
column name of data with the optional numeric column used to assign a color to this marker, based on the scale specified in the colorAxis.colors property. If this column is not present, all markers will be the same color.
sizevar
only used for displayMode='markers'. Column name of data with the optional numeric column used to assign the marker size, relative to the other marker sizes. If this column is not present, the value from the previous colu
hovervar
column name of data with the additional string text displayed when the user hovers over this region.
options
list of configuration options, see: [results=rd]{gsub("CHARTNAME", googleChartName, readLines(file.path(".", "inst", "mansections", "GoogleChartToolsURLConfigOptions.txt")))}

[results=rd]{paste(readLines(file.path(".", "inst", "ma