recharts (version 0.0.302)

eBar: Bar charts

Description

ECharts style bar charts.

Usage

eBar(dat, horiz = FALSE, opt = list())

Arguments

dat
data.frame.
horiz
logical. If FALSE, the bars are drawn vertically with the first bar to the left. If TRUE, the bars are drawn horizontally with the first at the bottom.
opt
option of ECharts.

Value

The HTML code as a character string.

Examples

Run this code
require(plyr)
dat = ddply(iris, .(Species), colwise(mean))
rownames(dat) = dat[,1]
dat = dat[, -1]
dat
plot(eBar(dat))
plot(eBar(dat, horiz = TRUE))

Run the code above in your browser using DataCamp Workspace