Learn R Programming

googleVis (version 0.4.4)

gvisPieChart: Google Pie Chart with R

Description

The gvisPieChart 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. The actual chart is rendered by the web browser using SVG or VML.

Usage

gvisPieChart(data, labelvar = "", numvar = "", options = list(), chartid)

Arguments

data
a data.frame to be displayed as a pie chart
labelvar
Name of the character column which contains the category labels for the slice labels.
numvar
a vector of column names of the numerical variables of the slice values.
options
list of configuration options for Google Pie Chart. [object Object] Further possible components are, taken from https://google-developers.appspot.com/chart/interactive/docs/gallery/piechart.html#Configuration_Options: [objec