png.report | R Documentation |
Writes graph to file for inclusion in report. The function opens a graphics device, after which the plot call(s) should follow. To be executed, the graphics device needs to be closed with dev.off()
.
png.report(
filename,
w = 6,
h = 4,
units = "in",
psize = 10,
bg = "transparent",
res = 600,
...
)
filename |
filename including path. To follow qP workflow standards should read the internal relative reference directory "../WorkAre/output/graphs" |
w |
width in |
h |
height in |
units |
units ('in', 'cm', or 'pt') |
psize |
pointsize in |
bg |
background color |
res |
resolution of PNG graph. High values create top quality graph at the expense of large file size. |
... |
any additional parameters to be passed on the |
A graph written to file in .png format that can be included into reports, for example using LaTeX typesetting.
png.slide.semi
, png.slide.full
## Not run: png.report(filename = "test.png")
set.seed(1234567)
plot(x = 1:25,y = rnorm(25,50,5))
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.