#########################################################################/**
# @RdocFunction eps
#
# @title "EPS graphics device"
#
# \description{
# Device driver for Encapsulated Postscript. This driver is the same as
# the postscript driver where some arguments have different default values.
# }
#
# @synopsis
#
# \arguments{
# \item{file}{Default file name (pattern).}
# \item{horizontal}{If @FALSE, an horizontal EPS file is created,
# otherwise a portrait file is created.}
# \item{paper}{A @character string.}
# \item{...}{Other arguments accepted by \code{postscript()}.}
# }
#
# \value{
# A plot device is opened; nothing is returned.
# }
#
# \examples{\dontrun{
# eps("foo.eps")
#
# # is identical to
#
# postscript("foo.eps", onefile=TRUE, horizontal=FALSE)
#
# # and
#
# dev.print(eps, "foo.eps")
#
# # is identical to
#
# dev.print(postscript, "foo.eps", onefile=TRUE, horizontal=FALSE, paper="special")
# }}
#
# \keyword{device}
#
# \seealso{
# @see "grDevices::postscript".
# }
#
# @author
#*/#########################################################################
eps <- function(file = "Rplot%03d.ps", horizontal=FALSE, paper="special", ...) {
postscript(file=file, onefile=FALSE, horizontal=horizontal, paper=paper, ...);
}
############################################################################
# HISTORY:
# 2005-01-16
# o Corrected argument in example code from 'onepage' to 'onefile'.
# 2004-02-01
# o Added argument paper="special".
# 2001-06-04
# o Created.
############################################################################
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.