gdevice | R Documentation |
A wrapper function to prepare a graphics device for output.
gdevice(type = "", file, width = 8.5, height = 8.5, layout, ...)
type |
Character string specifying the type of graphics device to be created (e.g. 'pdf', 'jpg', ...). |
file |
File name, excluding file extension suffix. |
width, height |
Dimensions in inches. |
layout |
Specify plot layout of graphics device. |
gdevice("pdf", "Test.pdf")
gdevice() # Equivalent to 'dev.new()'.
plot(runif(100), runif(100))
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.