Learn R Programming

googleVis (version 0.4.4)

gvisIntensityMap: Google Intensity Map with R

Description

An intensity map highlights regions or countries based on relative values.

The gvisIntensityMap function reads a data.frame and creates text output referring to the Google Visualisation API, which can be included into a web page, or as a stand-alone page.

Usage

gvisIntensityMap(data, locationvar = "", numvar = "",
                       options = list(), chartid)

Arguments

data
a data.frame. The data has to have at least two columns with location name (locationvar) and any number of numeric columns (numvar) to be mapped.
locationvar
column name of data with the geo locations to be analysed. The location has to contain country ISO codes or USA state codes.
numvar
column names of data with the numeric values to be displayed.
options
list of configuration options for Google Intensity Map. [object Object] Further possible components are, taken from https://google-developers.appspot.com/chart/interactive/docs/gallery/intensitymap.html#Configuration_Options: