Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.
/ saveImageHigh Public archive

Saving an R graph as an image or a pdf with high resolution.

License

Notifications You must be signed in to change notification settings

npechl/saveImageHigh

Repository files navigation

saveImageHigh

Saving an R graph as an image or a pdf with high resolution.

Installation

# install.packages("devtools")
devtools::install_github("nikopech/saveImageHigh")

Usage

gr = ggplot(mtcars, aes(mpg, disp, color = am)) + geom_point()

save_as_pdf({print(gr)},
            file.name = "my-graph.pdf",
            width = 6,
            height = 4)

save_image({plot(1:10, 1:10)},
           file.name = "first-image.png")

About

Saving an R graph as an image or a pdf with high resolution.

Topics

Resources

License

Stars

Watchers

Forks

Languages