Learn R Programming

⚠️There's a newer version (2.1.16) 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

Install

install.packages('rAmCharts')

Monthly Downloads

1,021

Version

2.0.2

License

GPL (>= 2)

Maintainer

Jeffery Petit

Last Published

January 13th, 2025

Functions in rAmCharts (2.0.2)

amWind

Plotting wind using rAmCharts
setExport

Setters for AmChart and AmStockChart.
AmGraph-class

AmGraph class
api

See AmCharts API
GaugeAxis-class

GaugeAxis class
initialize,TrendLine-method

Initializes a TrendLine
initialize,StockEvent-method

Initialize a StockEvent
AmStockChart-class

AmStockChart
amLines

amLines adds a serie to a graph.
add_export_dependency

Add the export dependency to an htmlwidget
initialize,PeriodSelector-method

Initializes a PeriodSelector
CategoryAxis-class

CategoryAxis class
initialize,ValueAxis-method

Initializes ValueAxis
show,AmObject-method

Visualize with show
data_funnel

Random data for plotting funnel chart examples
initialize,ChartCursor-method

Initializes a ChartCursor
initialize,GaugeAxis-method

Initializes a GaugeAxis
StockPanel-class

StockPanel class
show,AmChart-method

Visualize AmStockChart with show
add_dataloader_dependency

Add dataloader dependency
AmChart-class

AmChart
DataSet-class

DataSet class
initialize,CategoryAxis-method

Initializes a CategoryAxis
stockLegend

Constructor for StockLegend.
stockGraph

Constructor for a stockGraph (class AmGraph)
renderAmCharts

SHINY
add_theme_dependency

Add theme dependency
initialize,AmBalloon-method

Initializes an AmBalloon
data_wind

Random data for plotting wind chart examples
ValueAxis-class

ValueAxis class
amBoxplot

Plotting boxplot using rAmCharts
add_responsive_dependency

Add responsive dependency
amHist

Plotting histogram using rAmCharts
amAngularGauge

Plotting gauge using rAmCharts
ChartScrollbar-class

ChartScrollbar class
Guide-class

Guide class
runExamples

Run example with shiny
initialize,DataSet-method

Creates or updates a DataSet
ChartCursor-class

ChartCursor class
initialize,AmStockChart-method

Initializes an AmStockChart
AmBalloon-class

AmBalloon class
initialize,GaugeBand-method

Initializes a GaugeBand
initialize,GaugeArrow-method

Initializes a GaugeArrow
Title-class

Title class
amChartsOutput

SHINY
amFloatingBar

Plotting floating bar chart using rAmCharts
TrendLine-class

TrendLine class
amBullet

Plotting bullet chart using rAmCharts
amPie

Plotting pie chart using rAmCharts
data_fbar

Random data for plotting floating bar chart examples
initialize,Title-method

Initializes A Title
data_gbar

Random data for plotting bar chart examples
initialize,DataSetSelector-method

Creates or updates a DataSetSelector
data_stock_2

Random data for example
AmLegend-class

AmLegend class
StockEvent-class

StockEvent class
initialize,Label-method

Initializes Label
amSolidGauge

Plotting solid gauge using rAmCharts
initialize,AmChart-method

Creates an AmChart
amRadar

Plotting radar using rAmCharts
AxisBase-class

AxisBase class
initialize,ChartScrollbar-method

Initializes a ChartScrollbar
data_stock1

Random data for example
amOHLC

Plotting OHLC chart using rAmCharts
AmObject-class

AmObject class
data_gdp

10 Richest Countries in the World by 2015 GDP
addGuide,AxisBase,GuideOrMissing-method

Add a Guide for AxisBase
GaugeArrow-class

GaugeArrow class
amCandlestick

Plotting candlestick chart using rAmCharts
data_waterfall

Random data for plotting candlestick chart examples
data_pie

Random data for plotting pie chart examples
Label-class

Label class
print,AmObject-method

Visualize with print
initialize,StockPanel-method

Initialize a StockPanel
initialize,AmLegend-method

Initializes legend of the chart
data_candleStick2

Random data for plotting candlestick chart examples
data_bar

Random data for plotting bar chart examples
addListener

AmObject methods
GaugeBand-class

GaugeBand class
data_radar

Random data for plotting radar chart examples
initialize,AmGraph-method

Initializes an AmGraph
initialize,Guide-method

Initializes a Guide
controlShinyPlot

Tests the class of an expression.
plot,AmCharts-method

PLOTTING METHOD
data_mekko

Random data for plotting mekko chart examples
amWaterfall

Plotting waterfall chart using rAmCharts
listProperties

List properties of an S4 object
amFunnel

Plotting funnel chart using rAmCharts
Generics functions

General shared generic methods
amOptions

amOptions
show,AmStockChart-method

Visualize AmStockChart with show
PeriodSelector-class

PeriodSelector
DataSetSelector-class

DataSetSelector class
amBarplot

Plotting bar chart using rAmCharts
amPlot

Plot serial data
data_candleStick1

Random data for plotting candlestick chart examples
amMekko

Plotting mekko chart (quali vs quali) using rAmCharts
data_AirPassengers

Air passengers for example