plotPCA | R Documentation |
Displays the dimensional reduction and maps gene, gene-set or feature information onto the color-aesthetic.
plotPCA(
object,
color_by = NULL,
n_pcs = NULL,
pt_alpha = 0.9,
pt_clr = "lightgrey",
pt_size = 1,
pt_clrp = NULL,
pt_clrsp = NULL,
nrow = NULL,
ncol = NULL,
verbose = NULL,
...
)
plotPca(...)
plotTSNE(
object,
color_by = NULL,
color_aes = "color",
color_trans = "identity",
alpha_by = NULL,
order_by = NULL,
order_desc = FALSE,
pt_shape = 19,
shape_by = NULL,
method_gs = NULL,
pt_alpha = 0.9,
pt_clr = "lightgrey",
pt_size = 1,
pt_clrsp = NULL,
pt_clrp = NULL,
clrp_adjust = NULL,
normalize = NULL,
use_scattermore = FALSE,
sctm_interpolate = FALSE,
sctm_pixels = c(1024, 1024),
verbose = NULL,
...
)
plotTsne(...)
plotTsneComparison(
object,
color_by,
ggpLayers = list(),
display_title = FALSE,
nrow = NULL,
ncol = NULL,
...
)
plotUMAP(
object,
color_by = NULL,
color_aes = "color",
color_trans = "identity",
alpha_by = NULL,
order_by = NULL,
order_desc = FALSE,
shape_by = NULL,
method_gs = NULL,
pt_shape = 19,
pt_alpha = 0.9,
pt_clr = "lightgrey",
pt_size = 1,
pt_clrsp = NULL,
pt_clrp = NULL,
clrp_adjust = NULL,
normalize = NULL,
transform_with = list(),
use_scattermore = FALSE,
sctm_interpolate = FALSE,
sctm_pixels = c(1024, 1024),
verbose = NULL,
...
)
plotUmap(...)
plotUmapComparison(
object,
color_by,
ggpLayers = list(),
display_title = FALSE,
nrow = NULL,
ncol = NULL,
...
)
object |
An object of class |
color_by |
Character value. The variables by which to color the data points. |
n_pcs |
Numeric value. Determines the number of principal components to be plotted. Must be an even number. |
pt_alpha |
Numeric value. Specifies the degree of transparency of all points. |
pt_clr |
Character value. Specifies the color of all points. |
pt_size |
Numeric value. Specifies the size of all points. |
pt_clrp |
The color palette to be used if the specified variable displayed by
color is categorical/discrete. Run |
pt_clrsp |
The color spectrum to be used if the specified variable displayed by
color is continuous. Run |
nrow , ncol |
Numeric values or NULL. Used to arrange multiple plots. |
verbose |
Logical. If (Warning messages will always be printed.) |
... |
Used to absorb deprecated arguments or functions. |
order_by |
Character value or |
order_desc |
Logical value. If |
method_gs |
Character value. The method according to which gene sets will be handled specified as a character of length one. This can be either 'mean or one of 'gsva', 'ssgsea', 'zscore', or 'plage'. The latter four will be given to gsva::GSVA(). |
clrp_adjust |
Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
normalize |
Logical. If set to TRUE values will be scaled to 0-1. Hint: Variables that are uniformly expressed can not be scaled and are discarded. |
use_scattermore |
Logical value. If |
sctm_interpolate , sctm_pixels |
Given to the corresponding arguments
of |
ggpLayers |
A list of ggplot add ons to add to each plot. |
display_title |
Logical value. If set to TRUE an informative title is displayed. |
transform_with |
List or
In case of plotting:
Useful if you want to apply more than one transformation on variables mapped to
plotting aesthetics. Input for |
The comparison version of each function take a vector of variables
to color by. A list of plots is created that is arranged via grid.arrange()
.
A ggplot.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
object <- runPCA(object)
object <- runTSNE(object)
object <- runUMAP(object)
plotPCA(object, color_by = "histology")
plotTSNE(object, color_by = "histology")
plotUMAP(object, color_by = "histology")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.