Bonjour,
Je voudrais avoir une image contenant plusieurs plot mais il sont un écrabouillés, j'utilise la méthode grid.arrange qui a en paramètre une longueur et largeur mais quand je les utilise il me met un erreur.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 library(ggplot2) df <- data.frame("a" = rnorm(100), "b" = rnorm(100)) p <- ggplot(df, aes(a,b)) + geom_point() l <- list(p,p,p,p,p) lp <- grid.arrange(grobs = lp,ncol = 3, widths = 800, heights = 400) # Error in arrangeGrob(...) : nrow * ncol >= n is not TRUE ggsave(file = "gg.png", arrangeGrob(grobs = lp, ncol = 3)) [ATTACH=CONFIG]471411[/ATTACH]
Partager