library(ggplot2)
library(patchwork)
p1 <- ggplot(mtcars) + geom_point(aes(mpg, disp)) + ggtitle("График 1")
p2 <- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group = gear)) + ggtitle("График 2")
p3 <- ggplot(mtcars) + geom_smooth(aes(disp, qsec)) + ggtitle("График 3")
p4 <- ggplot(mtcars) + geom_bar(aes(carb)) + ggtitle("График 4")
(p1 | p2 | p3) /
p4



























