There are a few issues with using ggplot and png in rmarkdown:
Plot sizes: When using ggplot and rendering to a png file, the default size of the plot may be too small or too large for the rendered output in rmarkdown. This can result in the plot being cut off or appearing too small.
Image quality: The quality of the rendered image may be low, resulting in a pixelated or blurry plot.
File output location: The png file may not be saved in the expected location, causing issues when referencing it in rmarkdown.
Rendering time: Rendering ggplot to a png file can be slow, especially when dealing with large datasets or complex plots. This can result in longer rendering times for the rmarkdown document.
To address these issues, it is often recommended to adjust the plot sizes, use a higher resolution rendering, ensure the png file is saved in the correct location, and potentially explore alternative rendering options such as saving the plot as a PDF or SVG file.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-06-03 11:00:00 +0000
Seen: 10 times
Last updated: Jul 28 '21
How can you ensure the safe operation of an Apache container on Kubernetes?
How can I use VS Code and R to create plots?
How can folders be created for each month using react pdf?
What is the meaning of the term deprecated with regards to react-google-login?
How can I use .populate() in Mongoose to select specific fields?
What explains the variation in performance between the benchmark's C version and its AVX2 version?
What is the process for preserving all Docker images and transferring them to a different device?