0

I am making a figure for the publication. All my plots were plotted using ggplot in R. Now I want to arrange them into one figure. I am using gridExtra package like this but I want to directly arrange along with labels such as A),B) etc..

library(ggplot2)
library(gridExtra)

c <- ggplot(mtcars, aes(factor(cyl),mpg))

P1 <- c + geom_boxplot()
P2 <- c +  geom_point()

grid.arrange(P1,P2)

Resultant plot

enter image description here

But I want to label the plots as A. B. like this

enter image description here

Is there a way to do this??

Koundy
  • 5,265
  • 3
  • 24
  • 37

0 Answers0