Learn R Programming

googleVis (version 0.5.2)

gvisPieChart: Google Pie Chart with R googleChartName <- "piechart" gvisChartName <- "gvisPieChart"

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 Charts, see: [results=rd]{gsub("CHARTNAME", googleChartName, readLines(file.path(".", "inst", "mansections", "GoogleChartToolsURLConfigOptions.txt")))}

[results=rd]{paste(readLines(file