mutate_mapping: Modify data frame according to mapping

View source: R/highcharts-api-add.R

mutate_mappingR Documentation

Modify data frame according to mapping

Description

Modify data frame according to mapping

Usage

mutate_mapping(data, mapping, drop = FALSE)

Arguments

data

A data frame object.

mapping

A mapping from hcaes function.

drop

A logical argument to you drop variables or not. Default is FALSE

Examples


df <- head(mtcars)
mutate_mapping(data = df, mapping = hcaes(x = cyl, y = wt + cyl, group = gear))
mutate_mapping(data = df, mapping = hcaes(x = cyl, y = wt), drop = TRUE)

jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.