Google Annotation Chart with R googleChartName <- "annotationchart"gvisChartName <- "gvisAnnotationChart"
Google Annotation Chart with R googleChartName <- "annotationchart"
gvisChartName <- "gvisAnnotationChart"
gvisAnnotationChart charts are interactive time series line charts that support annotations. Unlike the gvisAnnotatedTimeLine, which uses Flash, annotation charts are SVG/VML and should be preferred whenever possible.
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 can be set to NA. See section 'Details' for more details.
annotationvar: column name of data which shows the annotation text. The information has to be of class character or factor. Missing information can be set to NA. See section 'Details' for more details.
date.format: if datevar is of class Date then this argument specifies how the dates are reformatted to be used by JavaScript.