save_jpg_for_submission: ggplot to 300 dpi JPG for article submission

View source: R/ggplot.R

save_jpg_for_submissionR Documentation

ggplot to 300 dpi JPG for article submission

Description

what this does is save as PDF, then crop it, and convert to JPG which

Usage

save_jpg_for_submission(name, figure = NULL, ...)

Arguments

name

name to save without extension

figure

ggplot object, empty means the last plot

...

more parameters for 'ggsave'

Details

- not change scale, as compared to 'ggsave' as JPG and put 'dpi = 300', always set width and height! my favorites are 7-4, 7-5, 9-6 - crop white space surrounding (such as from 'geom_sf'), with 'pdfcrop' or 'pdfcrop.pl' for mamba/conda. - convert to JPG with 'pdftoppm' (from 'poppler-utils')

this will create a subfolder at ‘here::here(’fig')' and save into it.

Try adding '+ k.theme'?


kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.