Description Usage Arguments Examples
Title
1 2 3 4 5 6 7 8 9 |
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(ggplot2)
library(dplyr)
mtcars %>%
mutate(heavy = wt > 3) %>%
mutate(index = 1:n()) %>%
arrange(heavy) %>%
ggplot() +
aes(x = factor(cyl)) +
geom_bar(color = "grey85") +
aes(group = index) +
aes(fill = heavy)
mtcars %>%
mutate(heavy = wt > 3) %>%
ggplot() +
aes(x = factor(cyl)) +
l_geom_brick() +
aes(fill = heavy) +
aes(group = heavy) +
scale_fill_manual(values = c("tan1",
"steelblue3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.