dir.png | R Documentation |
Concatenates a path, filename, and file extension into an output path, then opens a png connection at the output path. Any folders in the path that do not exist are created.
dir.png(filename, path = ".", ..., append.date = T)
filename |
The output file name. |
path |
The path to the output file. |
... |
Additional arguments to |
append.date |
Whether to write the output to a directory with today's date. |
res |
The nominal resolution in ppi. |
width |
The width of the device. |
height |
The height of the device. |
dir.img
, grDevices::png
dir.png("example",path="path/to")
plot(1:5,1:5)
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.