Usage
## S3 method for class 'default':
otsplot(x, y, subject, weights, groups,
control = otsplot_control(), filter = NULL,
main, xlab, ylab, xlim, ylim, ...)otsplot_control(cex = 1, lwd = 1/4, col = NULL,
hide.col = grey(0.8),
lorder = c("background", "foreground") ,
lcourse = c("upwards", "downwards"),
grid.scale = 1/5, grid.lwd = 1/2,
grid.fill = grey(0.95), grid.col = grey(0.6),
layout = NULL, margins = c(5.1, 4.1, 4.1, 3.1),
strip.fontsize = 12, strip.fill = grey(0.9),
pop = TRUE, newpage = TRUE, maxit = 500L)
otsplot_filter(method = c("minfreq", "cumfreq", "linear"), level = NULL)
Arguments
x
a numeric
or factor
vector for the x
axis, e.g. time.
y
an ordered
factor vector for the y
axis.
subject
a factor
vector that identifies the subject,
i.e., allocates elements in x
and y
to the subject
i.e. observation unit.
weights
a numeric vector of weights of length equal the number
of subjects.
groups
a numeric
or factor
vector of group
memberships of length equal the number of subjects. When specified,
one panel is generated for each distinct membership value.
control
control parameters produced by otsplot_control
,
such as line colors or the scale of translation zones.
filter
an otsplot_filter object which defines line
coloring options. See details. main, xlab, ylab
title and axis labels for the plot.
xlim, ylim
the x limits c(x1, x2)
resp. y limits
(y1,y2)
.
...
additional undocumented arguments.
cex
expansion factor for the squared symbols.
lwd
expansion factor for line widths. The expansion is
relative to the size of the squared symbols.
col
color palette vector for line coloring.
hide.col
Color for ordinal time-series filtered-out by the
filter
specification in otsplot
.
lorder
line ordering. Either "background"
or
"foreground"
.
lcourse
Method to connect simultaneous elements with the
preceding and following ones. Either "upwards"
(default) or
"downwards"
.
grid.scale
expansion factor for the translation zones.
grid.lwd
expansion factor for the borders of translation
zones.
grid.fill
the fill color for translation zones.
grid.col
the border color for translation zones.
strip.fontsize
fontsize of titles in stripes that appear
when a groups
vector is assigned.
strip.fill
color of strips that appear when a groups
vector is assigned.
layout
an integer vector c(nr, nc)
specifying the
number of rows and columns of the panel arrangement when the
groups
argument is used.
margins
a numeric vector c(bottom, left, top, right)
specifying the space on the margins of the plot. See also
the argument mar
in par. pop
logical scalar. Whether the viewport tree should be popped
before return.
newpage
logical scalar. Whether grid.newpage()
should be
called previous to the plot.
maxit
maximal number of iteration for the algorithm that
computes the translation arrangement.
method
character string. Defines the filtering
function. Available are "minfreq"
, "cumfreq"
and
"linear"
.
level
numeric scalar between 0 and 1. The frequency threshold
for the filtering methods "minfreq"
and "cumfreq"
.