Home > Back-end >  Reproduce a figure without data
Reproduce a figure without data

Time:06-01

I would like to reproduce the wiskers and boxplots below, but I don't have any data. How can I do this?

enter image description here

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)

Created on 2022-06-01 by the enter image description here

CodePudding user response:

You could scan it properly and measure and re-build it in Adobe Illustrator (or any other vector capable program).

  • Related