Open PNG graphics device to export a plot into the TAF
resolution determining the text size, line width, plot symbol size, etc.
filename can be passed without the preceding
"report/", and without the
".png" filename extension.
Specifically, the function prepends
"report/" to the filename if (1)
the filename does not contain a
"/" separator, (2) the working
directory is not
report, and (3) the directory
The function also appends
".png" to the filename if it does not
already have that filename extension.
This automatic filename manipulation can be bypassed by using the
No return value, called for side effects.
A simple convenience function to shorten
res argument affects the text size, along with all other plot
elements. To change the text size of specific lattice plot elements, the
zoom function can be helpful.
For consistent image width and text size, it can be useful to keep the
width = 1600 but vary the
height to adjust the desired
aspect ratio for each plot.
png is the underlying function used to open a PNG graphics
zoom changes text size in a lattice plot.
TAF-package gives an overview of the package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.