Description Usage Arguments Details Value Examples
Tools for visualizing lineages inferred by slingshot
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
x |
a |
type |
character, the type of output to be plotted, can be one of
|
linInd |
integer, an index indicating which lineages should be plotted
(default is to plot all lineages). If |
show.constraints |
logical, whether or not the user-specified initial and terminal clusters should be specially denoted by green and red dots, respectively. |
add |
logical, indicates whether the output should be added to an existing plot. |
dims |
numeric, which dimensions to plot (default is |
asp |
numeric, the y/x aspect ratio, see |
cex |
numeric, amount by which points should be magnified, see
|
lwd |
numeric, the line width, see |
col |
character or numeric, color(s) for lines, see |
... |
additional parameters to be passed to |
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 6 7 8 9 | data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
sds <- slingshot(rd, cl, start.clus = "1")
plot(sds, type = 'b')
# add to existing plot
plot(rd, col = 'grey50')
lines(sds, lwd = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.