Convenience plotting function. Takes the embed
matrix which is the output of
EmbedSOM()
, together with a multitude of arguments that set how the plotting
is done.
PlotEmbed(
embed,
value = 0,
red = 0,
green = 0,
blue = 0,
fr = PlotId,
fg = PlotId,
fb = PlotId,
fv = PlotId,
powr = 0,
powg = 0,
powb = 0,
powv = 0,
sdsr = 1,
sdsg = 1,
sdsb = 1,
sdsv = 1,
clust = NULL,
nbin = 256,
maxDens = NULL,
fdens = sqrt,
limit = NULL,
alpha = NULL,
fsom,
data,
col,
cluster.colors = ClusterPalette,
expression.colors = ExpressionPalette,
na.color = grDevices::rgb(0.75, 0.75, 0.75, if (is.null(alpha)) 0.5 else alpha/2),
plotf = PlotDefault,
...
)
The embedding from EmbedSOM()
, or generally any 2-column matrix of coordinates
The column of data
to use for coloring the plotted points
The same, for individual RGB components
Functions to transform the values before they are normalized
Passed to corresponding NormalizeColor()
calls as pow
Passed to NormalizeColor()
as sds
Cluster labels (used as a factor)
Parameters of density calculation, see PlotData()
Low/high offset for NormalizeColor()
(obsolete&ignored, will be removed)
Default alpha value of points
FlowSOM object
Data matrix, taken from fsom
parameter by default
Overrides the computed point colors with exact supplied colors.
Function to generate cluster colors, default ClusterPalette()
Function to generate expression color scale, default ExpressionPalette()
Color to assign to NA
values
Plot function, defaults to graphics::plot()
slightly decorated with pch='.', cex=1
Extra params passed to the plot function
EmbedSOM::PlotEmbed(cbind(rnorm(1e5),rnorm(1e5)))
Run the code above in your browser using DataLab