View source: R/png.slide.full.r
png.slide.full | R Documentation |
A wrapper function for a call to png(), which opens a plot device (i.e. enables you to "print" a graphic to a file), and provides defaults for various parameters of that graphic suitable for a slide in a presentation. The plot area will over the full slide dimension and does not have to be resized or repositioned after pasting. Note that the plot must be generated and then dev.off()
must be called to close the plot device (i.e. close the output graphic file)
png.slide.full(
filename,
w = 10,
h = 7.5,
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 does not have to be edited when pasted into MS PowerPoint(r).
png.slide.semi
, png.report
png.slide.full(filename = file.path(tempdir(),"/myPNGslidefullexample.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.