Note, if you define transparent colors in your plots (e.g., when you define colors using rgb()), the rendered document will always display the pixel-based PNG files, regardless of the target document format. The files can be found in the mydocument_files folder that is generated when mydocument.Rmd is knitted.
When the target document format is PDF the vectorized PDF files are included when the target document format is DOCX the pixel-based PNG files are included. In papaja-documents, by default, all figures are saved as vectorized PDF and pixel-based PNG files at a resolution of 300 DPI, which should in most cases be sufficient for a print publication. Refer to the plot-related knitr chunk options for an overview of all options.
4.5.1 Inserting variables before they have been computed.4.4.1 Reporting models and tests in a table.3.2.3 Conveniently inserting citations with citr.