plot - output high resolution filled.contour figure in R -
I like my filled campus plot as high resolution (& gt; 600dpi) piture (png, jpeg ..) I'm trying to save. ..) However in Rstudio, when I use the "export" function in Rstudio's interface, the resolution is very low (this figure is only around 20kb).
Then I tried to use the "PNG" command to save my plots, but I failed.
Can I ask if anyone has to get this?
Thank you for your help!
I think you want to do this to keep the resolution to do so when the image is very To achieve this, using the Open the png graphics device png ("volcano.png", res = 600, height = 8.5, width = 11, units = "in") ## fill the following: Contour (...) Documentation x & Lt; - 10 * 1: Nero (Volcano) y & lt; - 10 * 1: filled with ncol (volcano). Coat (taken from X, Y, volcano, color = terrain.colors, plot.title = title (main = "topography of manga wow", Xlab = "m to m", ylab = "m vest"), plot .axes = {axis (1, sac (100, 800), = 100)) axis (2, seq (100, 600, by = 100)), key.title = title (main = "height \ n" (meter ), Key.x = axis (4, seq (90, 190, = 10)) # maybe ASP = 1 amtext (paste ("from across crosscoaker (.)", R. Version string), side = 1, line = 4, ed = 1, cx = .66) ## Turn off graphic device dev.off () If you want to present it at a physical size greater than 11 x 8.5, then you need PNG at the proper size. png (...) function, you can see the size (
height and
width parameters ) And also solution in the PPI (
res parameter), so in the code below 600 ppi or 11,600 x 5100 pixels on an 11 x 8.5 A PNG file of an inch image has been created. The file is 435 kb.
Comments
Post a Comment