emperors %>%
count(cause) %>%
ggplot(aes(x = n, y = cause)) +
geom_col() +
geom_text(
aes(label = n, x = n - .25),
color = "white",
size = 5,
hjust = 1
) +
cowplot::theme_minimal_vgrid(16) +
theme(
axis.title.y = element_blank(),
legend.position = "none"
) +
xlab("number of emperors")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.