I would like to align a ggtexttable {ggpubr} and a graphic {ggplot} by ggarrange {ggpubr} on the left side of the plot.
Is there a way to do this?
I tried the align argument but the objects are still centered
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))