Learn R Programming

googleVis (version 0.5.2)

gvisMerge: Merge two googleVis charts into one gvis-object

Description

gvisMerge merges two gvis-objects, either next or below each other into one gvis-object. The objects are arranged in a HTML table.

Usage

gvisMerge(x, y, horizontal = FALSE,
                tableOptions = "border="0"", chartid)

Arguments

x
a gvis-object.
y
a gvis-object.
horizontal
boolean. Default FALSE. If FALSE the two gvis-objects are arranged below each other, otherwise next to each other.
tableOptions
a valid HTML table option string. Default "border="0"".
chartid
character. If missing (default) a random chart id will be generated based on chart type and tempfile

Value

  • gvisMerge returns list of class "gvis" and "list". An object of class "gvis" is a list containing at least the following components:
  • typeGoogle visualisation type, here 'gvisMerge'
  • chartidcharacter id of the chart object. Unique chart ids are required to place several charts on the same page.
  • htmla list with the building blocks for a page [object Object],[object Object],[object Object],[object Object]

References

Google Chart Tools API: http://code.google.com/apis/chart/index.html

Follow the link for Google's data policy.

See Also

See also print.gvis, plot.gvis for printing and plotting methods

Examples

Run this code
## Please note that by default the googleVis plot command
## will open a browser window and requires Internet
## connection to display the visualisation.

Run the code above in your browser using DataLab