Skip to contents

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

Usage

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

hchart(mtcars, "point", hcaes_string("hp", "mpg", group = "cyl"))
#> Error in dplyr::mutate(data, !!!list_names): Problem while computing `group = ~cyl`.
#>  `group` must be a vector, not a `formula` object.

hcaes_string(x = "xval", color = "colorvar", group = "grvar")
#> Aesthetic mapping: 
#> * `color` -> `colorvar`
#> * `group` -> `grvar`
#> * `x`     -> `xval`