createColumn | R Documentation |
This function creates a column chart using highcharter.
createColumn(seriesName, categories, title, subTitle)
seriesName |
This is the series that will be the data basis of the graph. |
categories |
These are the names for each category. |
title |
This is the title of the chart |
subTitle |
This is the subtitle of the chart |
library(dplyr)
dat2 <- prepSeries(mtcars,"cyl","am","mpg") %>% mutate(am = ifelse(am == 1,"Automatic","Manual"))
datSeries <- changeToSeries(dat2,"am")
createColumn(datSeries,unique(dat2$cyl),"Fuel Efficiency","Miles per Gallon by Transmission and Cylinders")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.