Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save as pdf com cairo driver #25

Open
temospena opened this issue Oct 13, 2020 · 0 comments
Open

save as pdf com cairo driver #25

temospena opened this issue Oct 13, 2020 · 0 comments

Comments

@temospena
Copy link
Owner

O cairo_pdf já vem com o R. O cairo driver torna as linhas vectoriais mais arredondadas, e mais bonitas que gravar como png.
https://www.rdocumentation.org/packages/grDevices/versions/3.6.2/topics/cairo
https://www.jumpingrivers.com/blog/r-graphics-cairo-png-pdf-saving/
Dá também para exportar como svg ou ps

#gravar a imagem em PDF - correr primeiro isto
    caminho = paste("pathblabla/",ponto,".pdf", sep="")
    cairo_pdf(filename = caminho, onefile= T, width=11, height=5, fallback_resolution = 300))

#depois plotar
   ggplot(dataframe)

 #correr isto sempre para "fechar" o pdf
    dev.off()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant