Description Usage Arguments Examples
Prefill some aes arguments of a transformer
1 | prefill_aes(transformer, ...)
|
transformer |
A transformer function like |
... |
Named aesthetics, e.g. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # If you prefill in-place, you need to supply `k_dimensional`, since it
# cannot be inferred from the transformer name itself.
mtcars %>%
vis_cols(everything(),
transformer = prefill_aes(vis_2d_point, color = "vs"), k_dimensional = 2
) %>%
pull_gg(-1)
# Alternatively, you explificlty assign the object and give it a name
# that can be recognized by `vis_cols`.
vis_2d_point_with_color <- prefill_aes(vis_2d_point, color = "vs")
mtcars %>%
vis_cols(everything(),
transformer = vis_2d_point_with_color, k_dimensional = 2
) %>%
pull_gg(-1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.