| ucs.par {UCS} | R Documentation |
Set default graphics parameters for the evaluation.plot
function, similar to par for general graphics parameters.
The current parameter values are queried by giving their names as
character strings. The values can be set by specifying them as
arguments in name=value form, or by passing a single list of
named values.
ucs.par(...) .ucs.PAR
... |
either character strings (or vectors) specifying the names
of parameters to be queried, or parameters to be set in
name=value form, or a single list of named values. Valid
parameter names are described below. |
The current default parameters are stored in the global variable
.ucs.PAR. They can be queried by giving their names as
one or more character vectors to ucs.par. ucs.par() (no
arguments) returns all UCS graphics parameters.
Parameters are set by specifying their names and the new values as
name=value pairs. Such a list can also be passed as a single
argument to ucs.par, which is typically used to restore previous
parameter values (that have been saved in a list variable).
In order to restore the "factory settings", reload the module with the
command ucs.library("plots", reload=TRUE).
When parameters are set, their former values are returned in an
invisible named list. Such a list can be passed as a single argument
to ucs.par to restore the parameter values.
When a single parameter is queried, its value is returned directly. When two or more parameters are queried, the result is a named list.
Note the inconsistency, which is the same as for par: setting
one parameter returns a list, but querying one parameter returns a
vector (or a scalar, i.e. a vector of length 1).
colpar manpage
for details). Values are recycled if necessary.ltypar manpage
for details). Values are recycled if necessary.lwdpar manpage for details). Values
are recycled if necessary.bw.colevaluation.plot manpage for details).bw.ltybw.lwdn.firstn.first to a
higher value for evaluation based on random samples (cf.
evaluation.plot).n.steptest.stepn.step (default: 10). Since these tests are
time-consuming and significant differences are indicated by
fairly large symbols in the plot, values below 5 are rarely useful.cexpar for
details).lexlex is not an expansion factor, but is simply added
to all line widths in the plot.do.fileFALSE, evaluation.file
will not generate PostScript files, which is useful while testing
and fine-tuning plots (default: TRUE).
evaluation.plot, evaluation.file, par
print(names(ucs.par())) # list available parameters
ucs.par("col", "lty", "lwd") # the default line styles
ucs.par(c("col", "lty", "lwd")) # works as well
## temporary changes to graphics paramters:
par.save <- ucs.par(n.first=200, n.step=5)
## plots use the modified parameters here
ucs.par(par.save) # restore previous values
ucs.library("plots", reload=TRUE) # reload module for factory defaults