Closed seabass011 closed 4 years ago
Dr Wilke does not provide examples in the book?
library(gapminder)
library(hrbrthemes)
library(tidyverse)
filter(gapminder, grepl("Amer", continent), year == 2007) %>%
arrange(lifeExp) %>%
mutate(country = fct_inorder(as.character(country))) %>%
ggplot() +
geom_point(
aes(lifeExp, country),
color = "steelblue", size = 2
) +
labs(
x = "Life Expectancy (Years)", y = NULL
) +
theme_ipsum_es(grid="XY")
i sure hope this wasn't homework. those q's are for stackoverflow.
Great! For some reason, I thought it was a different chart type. I'll learn from this and ask these sorts of q's on stack overflow in the future. Appreciate all the great work on hrbrthemes. 😃
Hi Bob! Would you be open to giving me pointers on how to add a dotplot to
hrbrthemes
? Would love to show dot plots for displaying amounts where there are more than six categories.Would love to get your thinking here!
Let me know! 😃
Source: Example is on Page 54 from Fundamentals of Data Visualization: A Primer on Making Informative and Compelling Figures by Claus O. Wilke and I hold no copyright.