plotTernary.simMat {CytoSimplex} | R Documentation |
Create quaternary simplex plot with pre-calculated similarity matrix
Description
Create quaternary simplex plot with pre-calculated similarity matrix
Usage
## S3 method for class 'simMat'
plotTernary(
x,
title = NULL,
veloMat = NULL,
nGrid = 10,
radius = 0.1,
dotSize = NULL,
dotShuffle = NULL,
colorArg = NULL,
labelColors = c("#3B4992FF", "#EE0000FF", "#008B45FF"),
vertexLabelSize = NULL,
vertexLabelDrift = 0.03,
axisBreak = 5,
axisTextShow = TRUE,
axisTextSize = NULL,
axisTextDrift = 0.01,
gridLineAlpha = 0.6,
arrowLinewidth = NULL,
arrowAngle = 20,
arrowLen = 0.2,
titleSize = NULL,
equilateral = TRUE,
margin = 0.1,
interactive = FALSE,
...
)
Arguments
x |
simMat object, n cells by 4 vertices, each row summing to 1. |
title |
Title text of the plot. Default |
veloMat |
Aggregated velocity matrix. Output of |
nGrid |
Number of grids along the bottom side of the equilateral
triangle. Default |
radius |
Arrow length of unit velocity. Lower this when arrows point
outside of the coordinate. Default |
dotSize |
Dot aesthetics passed to |
dotShuffle |
Whether to shuffle the order of dots being added to the
plot, useful when categorical colors are used and mixing of categories is
expected. Default |
colorArg |
A "colorArg" object, internally prepared by
|
labelColors |
Colors of the axis lines and vertex labels.
Default |
vertexLabelSize |
Size of vertex labels. Default |
vertexLabelDrift |
Position adjustment of the vertex labels, only
applied to non-interactive view. Default |
axisBreak |
Number of breaks to be labeled along axis. Default
|
axisTextShow |
Logical, whether to show axis text. Default |
axisTextSize |
Size of text along each axis break. Default |
axisTextDrift |
Position adjustment of the axis text, only applied to
non-interactive view. Default |
gridLineAlpha |
Transparency of background grid lines. Default
|
arrowLinewidth |
Line width of the velocity arrows. Default |
arrowAngle |
Controls the angle of the arrowhead, only applied to
non-interactive view. Default |
arrowLen |
Control length in centimetre from arrow tip to arrow tail,
only applied to non-interactive view. Default |
titleSize |
Size of title text. Default |
equilateral |
Logical, whether to always display the triangle as
equilateral. Default |
margin |
Margin allowed around of the triangle plotting region when
|
interactive |
Logical. Whether to display plotly interactive view.
Default |
... |
Not used |