Rev 35 | Blame | Compare with Previous | Last modification | View Log | RSS feed
\name{bdopen}
\alias{bdopen}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{A graphics device overlayer}
\description{
A function that opens relevant the relevant device based on "file",
either applied with bdp() or as an argument.
}
\usage{
bdopen(file=bdp()$file,paper=bdp()$paper,mfrow=bdp()$mfrow,scale=TRUE)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{file}{An optional character string denoting the file to which
graphics will be written if it has one of "ps, eps, pdf, jpg, jpeg"
as ending. If file does not have one of these endings, graphics are
written to the X11 driver (which only works on systems using X11,
i.e. Linux, Solaris, some BSD, etc.)}
\item{paper}{What paper standard to write for. Currently,
"a4","a4.half","b5","b5.half", and "a4.word" are implemented. This
can also be applied with bdp().}
\item{mfrow}{See ?par}
\item{scale}{Only relevant if writing to screen. If TRUE, device will
be scaled to double size. Notice however, that currently only the
device itself is scaled, not the contents.}
}
\details{The accepted inputs to \code{bdopen} must be set before or in
the function call. It has no effect changing them once
\code{bdopen} has been called.
}
\references{SVN: http://svn.imm.dtu.dk/svn/bdplot/bdgraphics}
\author{Peder Bacher, Philip Delff}
\seealso{bdgraphics, bdp, bdplot, bddev.off}
\examples{
## bdp(file="example.ps")
bdopen()
x <- -10:10
bdplot(x, x^2)
bddev.off()
}
\keyword{iplot}