Skip to contents

Example data set to illustrate the use of the googleVis package.

Usage

data(Fruits)

Format

A data frame with 9 observations on the following 7 variables.

Fruit

a factor with levels Apples Bananas Oranges

Year

a numeric vector

Location

a factor with levels East West

Sales

a numeric vector

Expenses

a numeric vector

Profit

a numeric vector

Date

a Date

Examples

data(Fruits)
M <- gvisMotionChart(Fruits, idvar="Fruit", timevar="Year")
#> Warning: Flash charts are no longer supported by most browsers.
#> An alternative is plotly::ggplotly.
#> For more see https://plotly.com/r/animations/#mulitple-trace-animations

if (FALSE) {
 plot(M)
}