##
## Welcome to googleVis version 0.5.8
##
## Please read the Google API Terms of Use
## before you start using the package:
## https://developers.google.com/terms/
##
## Note, the plot method of googleVis will by default use
## the standard browser to display its output.
##
## See the googleVis package vignettes for more details,
## or visit http://github.com/mages/googleVis.
##
## To suppress this message use:
## suppressPackageStartupMessages(library(googleVis))
library(methods)
df=data.frame(country=c("US", "GB", "BR"),
val1=c(10,13,14),
val2=c(23,12,32))
Line <- gvisLineChart(df)
print(Line, tag = "chart")
## Loading required package: htmlwidgets
## Loading required package: htmltools
tmp <- data.frame(year=seq(1790, 1970, 10), uspop=as.numeric(uspop))
k <- tmp %>%
mjs_plot(x=year, y=uspop) %>%
mjs_line() %>%
mjs_add_marker(1850, "Something Wonderful") %>%
mjs_add_baseline(150, "Something Awful")
k
## R version 3.2.0 (2015-04-16)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 14.04.2 LTS
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=pt_BR.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
##
## attached base packages:
## [1] methods stats graphics grDevices utils datasets
## [7] base
##
## other attached packages:
## [1] metricsgraphics_0.7.5 htmltools_0.2.6 htmlwidgets_0.4
## [4] googleVis_0.5.8
##
## loaded via a namespace (and not attached):
## [1] Rcpp_0.11.5 digest_0.6.8 jsonlite_0.9.16
## [4] formatR_1.2 magrittr_1.5 evaluate_0.7
## [7] rstudioapi_0.3.1 RJSONIO_1.3-0 tools_3.2.0
## [10] servr_0.2 stringr_0.6.2 httpuv_1.3.2
## [13] yaml_2.1.13 knitr_1.10