I would like to reproduce the wiskers and boxplots below, but I don't have any data. How can I do this?
CodePudding user response:
You could insert some made-up illustrative data in a tribble
like this:
library(tidyverse)
tribble(
~name, ~gpa,
"box1", 3,
"box1", 3.3,
"box1", 3.7,
"box2", 1.5,
"box2", 3.4,
"box2", 2.7) |>
ggplot(aes(name, gpa))
geom_boxplot()
scale_y_continuous(limits = c(0, 4))
coord_flip()
labs(x = NULL)
CodePudding user response:
You could scan it properly and measure and re-build it in Adobe Illustrator (or any other vector capable program).