Description Usage Arguments Value Examples
This function can highlight geom functions who have 'stat' as a parameter. For example, geom_point, geom_rect, are acceptable. However, geom_abline isn't. In addition, geom_smooth does not workds currently.
1 |
geom |
geom_* functions (e.g., geom_point) |
LL |
aethentics for lowlights specified by list (e.g., list(colour = 'gray', alpha = '0.5')) |
function
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(ggplot2)
geom_point_hl2 <- gghl(geom_point)
d <- data.frame(x = 1:5, y = 1, hl = 1:5 == 3)
ggplot(
d,
aes(x, y, highlight = hl)
) +
geom_point_hl2()
ggplot(
d,
aes(x, y, highlight = hl, color = hl)
) +
gghl(geom_point)()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.