Save plots using ggplot2

This is how you save plots to hard drive when using gglpot. Uisng 300 dpi as resolution should be enough for publication. You have to give the height and width (five is good but use what fits you). You don’t need to scale it down to 0.8.

ggsave("~/gitlab/moralisk.org/p1.png", dpi = 300, scale = 0.8, height = 5, width = 5)

Publicerat

i

av

Etiketter:

Kommentarer

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *

Denna webbplats använder Akismet för att minska skräppost. Lär dig hur din kommentardata bearbetas.