How to resize and save plots in png format?

前端 未结 2 785
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 17:52

I would like to plot the results from a quantile regression, but am not able to:

  1. control the dimensions/size of the plots and
  2. save the plots as png.
2条回答
  •  执念已碎
    2021-01-07 18:28

    You can control the image dimensions by png argument.

    png("image.png", width = 800, height = 600)
    plot(...)
    dev.off()
    

    To "finish" the image, use dev.off.

提交回复
热议问题