xgobi(matrx, collab = colnames(matrx), rowlab = rownames(matrx), colors = NULL, glyphs = NULL, erase = NULL, lines = NULL, linecolors = NULL, resources = NULL, title = deparse(substitute(matrx)), vgroups = NULL, std = "mmx", nlinkable = NULL, subset = NULL, display = NULL, multi = TRUE, keep = FALSE, fprefix = "xgobi-")
xgobi.colors.default
n * p
matrix or data.frame.p
column labels (defaulting to those of
matrx
); if no default exists, xgobi
constructs
its own ("Var1"
,....).n
row labels (defaulting to those of
matrx
); if no default exists, xgobi
constructs
its own (numbers 1:n
).Glyphs have been coming as six different types (plus, X, open and filled rectangle, open and filled circle) in five different sizes, plus ``point'', giving 31 available glyphs.
-title
argument used by
X. Defaults to the name (expression) of the current matrx
argument. See documentation for xgobi, or for X.
1:(ncol(matrx))
.
"mmx"
, minimum-maximum scaling, in which the view is centered
at the midpoint of the data, and all the data fits inside the plotting
window. Alternatives are "msd"
, in which the plot is
centered at the mean of the data, or "mmd"
in which the plot
is centered at the median.
In those two cases, the view is standardized using the largest distance.
"machine:0.0"
where
machine
is the name of the user's workstation. See
documentation for xgobi or for X.xgobi
process should be
run multi-tasking with R. If true, control returns to the R
command prompt after 3 seconds.xgobi
program outside R)status
upon completion, i.e. 0
if ok.
xgobi
executes a call to the C program of the
same name,
an interactive statistical graphics program which runs under the X
Window System, and returns control of the R command line to the user. XGobi can be used to create vectors of brushing information and rotation
coefficients; see the documentation for XGobi for details.xgobi.colors.default
is the vector of the ten default brush
colors from which to choose by the colors
argument. Note that this sef of default brush colors can be modified by a (site or
user) specific app-defaults file, or directly by
xgobi(*, resources = ..)
, redefining (*brushColor
$n$
(with $n$ from 0:9
).
A warning is issued if colors
contains strings not in the
brushColor
resources.
xgvis
which uses xgobi
for interactive MDS.
data(laser)
xgobi(laser)
Xdir <- file.path(dirname(tempfile()), "xgobi")
dir.create(Xdir)
xgobi(laser, colors = xgobi.colors.default[c(1,3,5,7,9,10)[as.factor(laser$ Ir)]],
glyphs = c(23,8)[1+(laser$lambda > 1576)],
keep = TRUE, fprefix="xgobi/L-")
file.info(list.files(Xdir, full=TRUE))[, c(1,3,4)] # >> Files "L-laser..."
## remove manually when finally unused:
unlink(Xdir, recursive = TRUE)
##>>> see also the morsecodes example in help(xgvis) <<<
## ------------------ -----------
Run the code above in your browser using DataLab