Есть несколько пакетов, которые вы можете попробовать.Подробнее здесь
library(tidyverse)
library(ggpubr)
df <- tibble(Col1 = 1:3,
Col2 = rnorm(3))
plot1 <- df %>%
ggplot(aes(x = Col1,
y = Col2)) +
geom_line()
table1 <- ggtexttable(df,
rows = NULL)
library(cowplot)
bottom <- plot_grid(table1, NULL, NULL, NULL)
plot_grid(plot1, bottom,
nrow = 2)
![](https://i.imgur.com/Gg1haO3.png)
library(patchwork)
plot1 / (table1 | plot_spacer() | plot_spacer() | plot_spacer())
![](https://i.imgur.com/nK9CLpS.png)
library(magrittr)
library(multipanelfigure)
figure1 <- multi_panel_figure(columns = 3, rows = 2, panel_label_type = c("none"))
figure1 %<>%
fill_panel(plot1, column = 1:3, row = 1) %<>%
fill_panel(table1, column = 1, row = 2) %<>%
fill_panel(plot_spacer(), column = 2, row = 2) %<>%
fill_panel(plot_spacer(), column = 3, row = 2)
figure1
![](https://i.imgur.com/szXCwPr.png)
Создано в 2019-02-19 с помощью представительного пакета (v0.2.1.9000)