我想在图的左侧通过 ggarrange {ggpubr} 对齐 ggtexttable {ggpubr} 和图形 {ggplot}。
有没有办法做到这一点?
我尝试了 align 参数,但对象仍然居中
library(ggpubr)
library(ggplot2)
library(tidyverse)
df <- tibble(Col1 = 1:3,
Col2 = rnorm(3))
plot <- df %>%
ggplot(aes(x = Col1,
y = Col2)) +
geom_line()
table <- ggtexttable(df,
rows = NULL)
ggarrange(plot, table,
ncol = 1, nrow = 2,
heights = c(1, 0.5))