eps | R Documentation |
Graphics device for an EPS (Encapsulated PostScript) format.
eps(
filename,
width = 7,
height = 7,
paper = "special",
horizontal = FALSE,
...
)
filename |
A string. The name of the created eps file. The extension (.eps) can be omitted. |
width |
A numeric. The width of the device in inches. |
height |
A numeric. The height of the device in inches. |
paper |
A string. The type of the paper designated
in calling postscript function.
Should be |
horizontal |
A logical. Whether to rotate the graphical coordinate. Should be always FALSE regardless of whether the figure is horizontally long or vertically tall. Otherwise, the resulting graphics can be inappropriately rotated in certain viewers. |
... |
Other arguments passed to |
eps()
is a wrapper for built-in grDevices::postscript()
function in R.
It opens a graphics device as an Encapsulated PostScript,
with .eps extension and several pre-determined parameters.
It is noteworthy that specification of
paper and horizontal arguments (as special
and FALSE)
is currently necessary for R to produce
proper postscript output.
Designating different values for these parameters may
cause coordinate problems in using the resultant eps file
in other applications such as LaTeX and Adobe Illustrator.
(But this might be a candidate for the future bug fixing in R.)
## Not run:
eps("test", width = 6, height = 4)
example(htb.colors)
dev.off()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.