glBar | R Documentation |
Create an interactive bar plot object.
glBar(x, ...)
x |
the data.frame containing data to plot. |
... |
additional arguments depending on input object type. |
A chart object containing the information to create an interactive bar plot.
Shian Su
glBar.default
data(mtcars)
counts <- table(mtcars$gear)
data <- data.frame(nGears=as.numeric(names(counts)), Count=as.numeric(counts))
plot1 <- glBar(data, "Count", "nGears", ylab="Number of Gears")
glimma_plot(plot1, layout=c(1,1), launch=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.