Learn R Programming

googleVis (version 0.5.1)

gvisAnnotationChart: Google Annotation Chart with R googleChartName <- "annotationchart" gvisChartName <- "gvisAnnotationChart"

Usage

gvisAnnotationChart(data, datevar = "", numvar = "", idvar = "",
  titlevar = "", annotationvar = "", date.format = "%Y/%m/%d",
  options = list(), chartid)

Arguments

data
a data.frame. The data has to have at least two columns, one with date information (datevar) and one numerical variable.
datevar
column name of data which shows the date dimension. The information has to be of class Date or POSIX* time series.
numvar
column name of data which shows the values to be displayed against datevar. The information has to be numeric.
idvar
column name of data which identifies different groups of the data. The information has to be of class character or factor.
titlevar
column name of data which shows the title of the annotations. The information has to be of class character or factor. Missing information
annotationvar
column name of data which shows the annotation text. The information has to be of class character or factor. Missing information can be s
date.format
if datevar is of class Date then this argument specifies how the dates are reformatted to be used by JavaScript.
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