Description Usage Arguments Value Examples
View source: R/ResultsGenerator.R
It creates a dimensionality reduction plot (e.g. PCA or t-SNE) highlighting the samples of interest
1 2 3 4 5 6 7 8 9 10 11 | doScatterDR(
Data,
grouping.by = NULL,
highlight.by = "CellType",
showDims = c("Dim1", "Dim2"),
size = 5,
show.plot = TRUE,
save.plot = FALSE,
save.table = FALSE,
interactive = TRUE
)
|
Data |
list. The outcome of MarkerQuery(). |
grouping.by |
character. A grouping variable to be depicted in the plot. It groups (color code) the samples with common values for this variable. It can take any of the factor variables depicted at the column names of Data$Design. Default is NULL. |
highlight.by |
character. A second grouping variable to highlight certain point on the INTERACTIVE plot upon double click. It highlights the samples with common values for this variable and shades the rest. It can take any of the factor variables depicted at the column names of Data$Design. Default is CellType. |
showDims |
character vector. A character vector of size 2 or 3 specifing the dimensions to be plotted (Dim1, Dim2 and Dim3). If all three are specified then a 3D plot is generated otherwise a 2D plot of the specified dimensions is returned. Default is c("Dim1","Dim2"), i.e. the first 2 dimensionality reduction components. |
size |
numeric. It specifies the plotted dot size. Default is 5. |
show.plot |
logical. If TRUE, it shows the plot on the screen. Default is TRUE. |
save.plot |
logical. If TRUE, it saves the plot in an automatically generated folder <data folder>/Output/<InteractivePlots or NonInteractivePlots>. Default is FALSE. |
save.table |
logical. If TRUE, it saves the plot in an automatically generated folder <data folder>/Output/Tables. Default if FALSE. |
interactive |
logical. If TRUE, it generates an interactive plot with plotly otherwise a static plot with ggplot. Default is TRUE. |
data list. The plots and the tables of interest stored in automatically generated <data folder>/Output/ folders. The tables include a summary table of quantiles of the marker expression, the differential expression analysis results of the markers of interest and the normalised data for the markers of interest.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.