JPlotToTIFF | R Documentation |
Writes the output of a plot to a TIFF file. If you are using ggplot, try
either using JPlotToTIFF(filename, print(<plotting code>))
or else
ggsave()
.
JPlotToTIFF(
filename,
plotExpr,
width = 180,
height = NA,
aspectRatio = 3/2,
units = c("mm", "cm", "px", "in"),
tryToUseRagg = TRUE,
type = ifelse(capabilities()["cairo"], "cairo", NULL),
res = 72,
onlyIfDoesntExist = FALSE,
createDirectory = TRUE,
...
)
filename |
The name of the TIFF to create or overwrite. If NULL, plot output goes to the current device. |
plotExpr |
A function or expression which will produce the plot to be written to the file. |
width |
The width of the output TIFF file in |
height |
The height of the output TIFF file in |
aspectRatio |
Aspect ratio ( |
units |
Units of |
tryToUseRagg |
If |
type |
Plotting device; passed directly to |
res |
The nominal resolution in ppi. The value is passed in to
|
onlyIfDoesntExist |
If TRUE and the output file already exists,
|
createDirectory |
If TRUE and |
... |
Any additional arguments are passed to
|
The result of evaluating plotExpr
is returned invisibly (which
means it is not automatically printed).
agg_tiff
, tiff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.