View source: R/changeToSeries.R
changeToSeries | R Documentation |
This function converts a data frame to a series for use in highcharter
changeToSeries(dat, nameLabel, valueLabel)
dat |
This is the data source to be converted |
nameLabel |
This is the name of the column that should be the "name" part of the series |
valueLabel |
This is the name of the column that contains the values that will be the "data" in the series |
library(dplyr)
mtcars <- mtcars %>% mutate(vehicle_name = row.names(.))
datSeries <- changeToSeries(mtcars,"vehicle_name","mpg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.