eo.par {UCS} | R Documentation |
Set default graphics parameters for (e,o) plots, similar to
ucs.par
in the plots
module and par
for general
graphics parameters. Parameter values can be set by specifying them as
arguments in name=value
form, or by passing a single list of
named values. The current values can be queried by giving their names
as character strings.
eo.par(...) .eo.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
.eo.PAR
. They can be queried by giving their names as
one or more character vectors to eo.par
. eo.par()
(no
arguments) returns all eo
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 eo.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("eo", 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 eo.par
to restore the previous settings.
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).
bw
TRUE
, (e,o) plots are created in B/W mode
by default.
xlim
, ylim
xlim
) and o-axis
(ylim
) in orders of magnitude (i.e., base 10 logarithms: -2
corresponds to .01, 0 corresponds to 1, and 3 corresponds to
1000). When the default values are not set, every call to the
eo.setup
function must either specify xlim
and
ylim
values or a data set, from which suitable ranges are
computed.
aspect
TRUE
, an aspect ratio of 1:1 is
enforced for every (e,o) plot, i.e. the axis ranges are extended
as necessary (assuming a square plotting region). The factory
setting is TRUE
.
log.marks
TRUE
, tick marks on the axes are
labelled in logarithmic units, i.e. orders of magnitude.
Otherwise, absolute numbers are used. The factory setting is
FALSE
. (Note that (e,o) plots are always drawn in
logarithmic scale.)
steps
jitter
TRUE
, always uses jittered
coordinates for plotting data sets and computing n-best
thresholds. Note that all data sets must be annotated with the
add.jitter
function first. The factory setting is
FALSE
.
cex
1.3
.
col
par
manpage for details on colour specification).
Values are recycled to match the length of the lty
and
lwd
parameters when necessary. The factory setting defines
5 styles in black, blue, red, magenta and cyan.
lty
par
manpage for details). Values are recycled to match
the length of the col
and lwd
parameters when
necessary.
lwd
col
and lty
parameters when necessary.
angle
, density
col
, lty
and lwd
above. Details on shading lines can be found on the polygon
help page.
solid
bw.col
, bw.lty
, bw.lwd
col
, lty
and lwd
in colour mode). The
factory setting defines 5 styles with solid, dashed, grey, dotted
and dark grey dot-dash lines.
bw.angle
, bw.density
, bw.solid
angle
,
density
and solid
in colour mode)
pt.pch
points
help page for a full list of
available plot symbols). Values are recycled to match the length
of the pt.cex
and pt.col
parameters when necessary.
The factory setting defines 5 styles with black, green, red,
yellow and orange dots.
pt.cex
pt.pch
and pt.col
parameters when necessary.
pt.col
par
help page for details on
colour specification). Values are recycled to match the length
of the pt.pch
and pt.cex
parameters when necessary.
bw.pt.pch
, bw.pt.cex
, bw.pt.col
pt.pch
, pt.cex
and
pt.col
in colour mode). The factory setting defines 5
styles with black dots, circles, +
crosses, triangles and
x
crosses.
eo.setup
, eo.iso
,
eo.iso.diff
, eo.points
,
eo.legend
, ucs.par
, par
print(names(ucs.eo())) # list available parameters eo.par("col", "lty", "lwd") # the default styles for iso-lines eo.par(c("col", "lty", "lwd")) # works as well ## temporary changes to graphics paramters: par.save <- eo.par(bw=TRUE, steps=200) ## (e,o) plots use the modified parameters here eo.par(par.save) # restore previous values ucs.library("eo", reload=TRUE) # reload module for factory defaults