The draw_image() function from cowplot results in blurred pdfs
问题 Reading a vectorized pdf sometimes result in a badly blurred image with the draw_image() function from cowplot: library(ggplot2) library(cowplot) library(magick) # make pdf input as example p <- ggplot(iris, aes(Sepal.Length, Sepal.Width, shape = Species)) + geom_point() + scale_shape_manual(values = 21:23) + theme_classic() ggsave("input.pdf", p, width = 6, height = 4.2) # now draw with draw_image() and then write as png fig <- ggdraw() + draw_image("input.pdf") ggsave("output.png", fig,