Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

errors using multi plot (ggplot2) and grid.arrange (gridExtra)

Tags:

r

ggplot2

I am trying to make a graph with three panels. I am trying to use the functions multi plot (of ggplot2) and grid.arrange of (of gridExtra). None of them work! How could I fix this problem???

multiplot(f1.1,f1.2,f1.3)
Error: could not find function "multiplot"

grid.arrange(f1.1,f1.2,f1.3)
Error: No layers in plot
like image 218
user5385325 Avatar asked Sep 05 '26 17:09

user5385325


1 Answers

Might I suggest installing the gridExtra package:

library(gridExtra)
arrangeGrob(f1.1, f1.2, f1.3)
like image 65
Richard Ball Avatar answered Sep 07 '26 11:09

Richard Ball