plotSurface | R Documentation |
Displays the spatial dimension of the sample and colors the surface according to the expression of genes, gene sets or features.
plotSurface()
Takes the SPATA2
object or a data.frame.
plotSurfaceInteractive()
Takes only the SPATA2
object and opens a shiny
application which allows for interactive plotting.
plotSurface(object, ...)
## S4 method for signature 'spata2'
plotSurface(
object,
color_by = NULL,
alpha_by = NULL,
method_gs = NULL,
normalize = NULL,
smooth = FALSE,
smooth_span = NULL,
pt_alpha = NULL,
pt_clr = NULL,
pt_clrp = NULL,
pt_clrsp = NULL,
pt_size = NULL,
pt_size_fixed = NULL,
clrp_adjust = NULL,
use_scattermore = FALSE,
sctm_pixels = c(1024, 1024),
sctm_interpolate = FALSE,
display_image = NULL,
display_title = NULL,
complete = NULL,
verbose = NULL,
highlight_groups = NULL,
transform_with = NULL,
bcsp_rm = NULL,
na_rm = FALSE,
pt_size_legend = 10,
order_by = NULL,
order_desc = FALSE,
...
)
## S4 method for signature 'data.frame'
plotSurface(
object,
color_by = NULL,
alpha_by = NULL,
pt_alpha = 0.9,
pt_clr = "lightgrey",
pt_clrp = "milo",
pt_clrsp = "inferno",
pt_size = 2,
image = NULL,
clrp_adjust = NULL,
use_scattermore = FALSE,
sctm_pixels = c(1024, 1024),
sctm_interpolate = FALSE,
order_by = NULL,
order_desc = FALSE,
na_rm = TRUE,
...
)
plotSurfaceInteractive(object)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
color_by |
The variable to be displayed by color:
|
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(). |
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. |
smooth |
Logical. If TRUE, a loess fit is used to smooth the values. |
smooth_span |
Numeric value. Controls the degree of smoothing.
Given to argument |
pt_alpha |
Numeric value. Specifies the degree of transparency of all points. |
pt_clr |
Character value. Specifies the color 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 |
pt_size |
Numeric value. Specifies the size of all points. |
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. |
use_scattermore |
Logical value. If |
sctm_interpolate , sctm_pixels |
Given to the corresponding arguments
of |
display_image |
Logical. If set to TRUE the histology image of the specified sample is displayed underneath the plot. |
display_title |
Logical value. If set to TRUE an informative title is displayed. |
complete |
Logical. If the provided |
verbose |
Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
transform_with |
List or NULL. If list, can be used to transform continuous variables before plotting.
Names of the list slots refer to the variable. The content of the slot refers to the transforming functions.
Slot content can either be a character vector of function names. Use Useful if you want to apply more than one transformation on variables mapped to
plotting aesthetics. Input for |
bcsp_rm |
Character vector or |
order_by |
Character value or |
order_desc |
Logical value. If |
image |
An image of class Image to be displayed in the background.
Easily accessible via |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.