I am using rmarkdown to generate a word report in which I want to show the matrix with complete multiple columns. But since there are too many columns, I am turning it into an image to display, however, the generated image is not displaying fully because of the window limitations. I can only save this image and then insert it. And also need to set the size of each image.
data<-t(data.frame(rep(1:100),nrow=10,ncol=10))
ggpubr::ggtexttable(data, cols = c(paste0("A",rep(1:100))),theme = ggpubr::ttheme(colnames.style = ggpubr::colnames_style(fill = "#B4C6E7")) )
Is there any way to directly turn the matrix into an image, similar to a screenshot