Takes the 'embed' object which is the output of EmbedSOM, together with a multitude of arguments that override 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, clust = NULL, nbin = 256,
maxDens = NULL, fdens = sqrt, limit = 0.01, 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
The column of data to use for plotting the value
The same for RGB components
Functions to transform the values before they are normalized
Adjustments of the value plotting
Cluster labels (used as factor)
Parameters of density calculation, see PlotData
Low/high offset for NormalizeColor
Default alpha value
FlowSOM object
Data matrix, taken from fsom parameter by default
Different coloring, if supplied
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 slightly decorated 'graphics::plot'
Extra params passed to the plot function
# NOT RUN {
EmbedSOM::PlotEmbed(cbind(rnorm(1e5),rnorm(1e5)))
# }
Run the code above in your browser using DataLab