-3

I need help in exporting high-quality plots from R console which can be used for academic publishing

Tried export pdf options but it is difficult to attach pdf in a word file Please help

P Initiate
  • 79
  • 5

1 Answers1

2

You can try exporting plots as bitmap images; e.g. as a PNG

png("example.png", height = 4, width = 7, units = "in", res = 300)
plot(density(rnorm(100)))
dev.off()

Try playing around with the parameters height, width and res to achieve dimensions and a resolution conform with the publishing guidelines.

Also see ?png for more details.

Maurits Evers
  • 49,617
  • 4
  • 47
  • 68