⚠️There's a newer version (2.1.15) of this package. Take me there.

Introduction

This package allows to draw interactive charts from the JavaScript library AmCharts using Hmlwidgets.

Currently available chart types: funnel, gantt, gauge, pie, radar, serial, stock, xy.

Since it is still in developpment, some functionnalities might have an unexpected behavior. If you encounter the problem, do not hesitate to contact.

Please refer to this page http://datastorm-open.github.io/introduction_ramcharts/, you will find several examples and a quick tutorial.


Installation

The version 2.0.0 is available on CRAN:

install.packages("rAmCharts")

To install the "dev version" (v2.0.2), run the following code lines:

if (!require(devtools)) {
  install.packages("devtools")
} else {}

devtools::install_github("datastorm-open/rAmCharts")

NB:

  • Version 1.1.2 is based on AmCharts v3.17.2
  • Version 2.0.0 is based on AmCharts v3.18.2
  • Version 2.0.2 is based on AmCharts v3.20.3

Known issues

  • Problem in Shiny with Firefox (works with Chrome or Safari), the function renderAmcharts({NULL}) does not clear the chart, use conditionalPanel instead.
  • Use in R Markown needs either an url path "http://www.amcharts.com/lib/3" to find images or a local path e.g. system.file("htmlwidgets/lib", package = "rAmCharts"). HTML reports also need a call to the method plot.
library(rAmCharts)
data(iris)

amHist(iris$Sepal.Length, freq = FALSE, breaks = 30, col = "gray",
       path = "http://www.amcharts.com/lib/3")
# path = system.file("htmlwidgets/lib", package = "rAmCharts"))
  • Usual R colors work (for instance, light or dark prefixes), however the 'export' feature needs valid CSS colors. To be sure, use hexadecimal format if you want to use the 'export' feature.

Copy Link

Version

Down Chevron

Install

install.packages('rAmCharts')

Monthly Downloads

918

Version

2.0.3

License

GPL (>= 2)

Maintainer

Last Published

June 15th, 2016

Functions in rAmCharts (2.0.3)