Rev 44820 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grDevices/man/xfig.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{xfig}\alias{xfig}\title{XFig Graphics Device}\description{\code{xfig} starts the graphics device driver for producing XFig(version 3.2) graphics.The auxiliary function \code{ps.options} can be used to set and view(if called without arguments) default values for the arguments to\code{xfig} and \code{postscript}.}\usage{xfig(file = ifelse(onefile, "Rplots.fig", "Rplot\%03d.fig"),onefile = FALSE, encoding = "none",paper = "default", horizontal = TRUE,width = 0, height = 0, family = "Helvetica",pointsize = 12, bg = "transparent", fg = "black",pagecentre = TRUE)}\arguments{\item{file}{a character string giving the name of the file. For usewith \code{onefile = FALSE} give a C integer format such as\code{"Rplot\%03d.fig"} (the default in that case).(See \code{\link{postscript}} for further details.)}\item{onefile}{logical: if true allow multiple figuresin one file. If false, assume only one page per file and generate afile number containing the page number.}\item{encoding}{The encoding in which to write text strings. Thedefault is not to re-encode. This can be any encoding recognized by\code{\link{iconv}}: in a Western UTF-8 locale you probably want toselect an 8-bit encoding such as \code{latin1}, and in an East Asianlocale an \code{EUC} encoding. If re-encoding fails, the textstrings will be written in the current encoding with a warning.}\item{paper}{the size of paper region. The choicesare \code{"A4"}, \code{"Letter"} and \code{"Legal"} (and thesecan be lowercase). A further choice is \code{"default"}, whichis the default. If this is selected, the papersize is takenfrom the option \code{"papersize"} if that is set to a non-emptyvalue, otherwise \code{"A4"}.}\item{horizontal}{the orientation of the printed image, alogical. Defaults to true, that is landscape orientation.}\item{width, height}{the width and height of thegraphics region in inches. The default is to use the entirepage less a 0.5 inch overall margin in each direction. (See\code{\link{postscript}} for further details.)}\item{family}{the font family to be used. This must be oneof \code{"AvantGarde"}, \code{"Bookman"}, \code{"Courier"},\code{"Helvetica"} (the default), \code{"Helvetica-Narrow"},\code{"NewCenturySchoolbook"}, \code{"Palatino"} or\code{"Times"}. Any other value is replaced by\code{"Helvetica"}, with a warning.}\item{pointsize}{the default point size to be used.}\item{bg}{the initial background color to be used.}\item{fg}{the initial foreground color to be used.}\item{pagecentre}{logical: should the device region be centred on thepage?}}%%>>> REAL DOC in SOURCE: ../../../main/devices.c & ../../../unix/devPS.c\details{Although \code{xfig} can produce multiple plots in one file, the XFigformat does not say how to separate or view them. So\code{onefile = FALSE} is the default.The \code{file} argument is interpreted as a C integer format as usedby \code{\link{sprintf}}, with integer argument the page number.The default gives files \file{Rplot001.fig}, \dots, \file{Rplot999.fig},\file{Rplot1000.fig}, \dots.Line widths as controlled by \code{par(lwd=)} are in multiples of5/6*1/72 inch. Multiples less than 1 are allowed. \code{pch="."} with\code{cex = 1} corresponds to a square of side 1/72 inch.Windows users can make use of WinFIG(\url{http://www.schmidt-web-berlin.de/WinFIG.htm}, shareware).}\note{Only some line textures (\code{0 <= lty < 4}) are used. Eventually thismay be partially remedied, but the XFig file format does not allow asgeneral line textures as the \R model. Unimplemented line texturesare displayed as \emph{dash-double-dotted}.There is a limit of 512 colours (plus white and black) per file.}\section{Conventions}{This section describes the implementation of the conventions forgraphics devices set out in the \dQuote{R Internals Manual}.\itemize{\item The default device size is the paper size with a 0.25 inchborder on all sides.\item Font sizes are in big points.\item The default font family is Helvetica.\item Line widths are integers, multiples of 5/432 inch.\item Circle radii are multiples of 1/1200 inch.\item Colours are interpreted by the viewing/printing application.}}\seealso{\code{\link{Devices}},\code{\link{postscript}},\code{\link{ps.options}}.}\keyword{device}