Why automate table creation?
There are many R packages that can produce nice tables
Some of my favorites are
flextable (LaTex, HTML, or Microsoft Word)xtable (Latex or HTML)table1 (LaTex, HTML, or Microsoft Word; for creating Table 1)texreg (LaTex, HTML, or Microsoft Word; for creating table from model outputs)Some other options are
gtsummarymodelsummaryBest practice is to write a short script that will produce one table at a time
table_patientcharacteristics.Rtable_regressionmodel.Rtable_logisticmodel.RIt might be useful to change the name of the R script after your research is published
table1_patientcharacteristics.Rtable2_regressionmodel.Rtable3_logisticmodel.RSame principles apply to creating figures
ggplot2 is the most commonly used (for good reason!) R package to create nice figures
How would you design a Table 1 for the armed conflict paper (primary analyses with binary predictor)?
Write an R script that creates a Table 1 using your favorite package (either in PDF or Word)
Select only the countries that had an increase in maternal mortality from 2000 to 2017 (why 2017?)
diffmatmor that shows the difference between maternal mortality of each year and maternal mortality in 2000Create a line graph with maternal mortality on the y-axis, year on the x-axis, and a unique color for each country
ggplot2