s2png | R Documentation |
This command starts a PNG plotting device and sets appropriate parameters for
plotting spherical objects. The device must be closed by the user by calling
grDevices::dev.off()
or similar when no more graphics will be added.
s2png(filename, ..., init = FALSE)
filename |
Name of output file. A temporary file will be generated if it none is given. |
... |
Arguments passed on to
|
init |
Logical to initialize plot with a blank plot with
|
Name of output file.
img <- s2png() globe::flatearth() dev.off() file.remove(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.