hcaes_string: Define aesthetic mappings using strings. Similar in spirit to...

Description Usage Arguments Examples

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

Description

Define aesthetic mappings using strings. Similar in spirit to ggplot2::aes_string

Usage

1
2
3
hcaes_string(x, y, ...)

hcaes_(x, y, ...)

Arguments

x, y, ...

List of name value pairs giving aesthetics to map to variables. The names for x and y aesthetics are typically omitted because they are so common; all other aesthetics must be named.

Examples

1
2
3
hchart(mtcars, "point", hcaes_string("hp", "mpg", group = "cyl"))

hcaes_string(x = "xval", color = "colorvar", group = "grvar")

Example output

Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 
$color
colorvar

$group
grvar

$x
xval

attr(,"class")
[1] "hcaes" "list" 

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.