Description Usage Arguments Details Value Examples
A tool for quickly visualizing lineages inferred by
slingshot
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## S3 method for class 'SlingshotDataSet'
pairs(
x,
type = NULL,
show.constraints = FALSE,
col = NULL,
pch = 16,
cex = 1,
lwd = 2,
...,
labels,
horInd = seq_len(nc),
verInd = seq_len(nc),
lower.panel = FALSE,
upper.panel = TRUE,
diag.panel = NULL,
text.panel = textPanel,
label.pos = 0.5 + has.diag/3,
line.main = 3,
cex.labels = NULL,
font.labels = 1,
row1attop = TRUE,
gap = 1
)
|
x |
a |
type |
character, the type of output to be plotted, can be one of
|
show.constraints |
logical, whether or not the user-specified initial and terminal clusters should be specially denoted by green and red dots, respectively. |
col |
character, color vector for points. |
pch |
integer or character specifying the plotting symbol, see
|
cex |
numeric, amount by which points should be magnified, see
|
lwd |
numeric, the line width, see |
... |
additional parameters for |
labels |
character, the names of the variables, see |
horInd |
see |
verInd |
see |
lower.panel |
see |
upper.panel |
see |
diag.panel |
see |
text.panel |
see |
label.pos |
see |
line.main |
see |
cex.labels |
see |
font.labels |
see |
row1attop |
see |
gap |
see |
If type == 'lineages'
, straight line connectors between
cluster centers will be plotted. If type == 'curves'
, simultaneous
principal curves will be plotted.
When type
is not specified, the function will first check the
curves
slot and plot the curves, if present. Otherwise,
lineages
will be plotted, if present.
returns NULL
.
1 2 3 4 5 | data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
sds <- slingshot(rd, cl, start.clus = "1")
pairs(sds, type = 'curves')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.