89fa3af2 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering.R
\name{visualiseDim}
\alias{visualiseDim}
|
233354bd |
\title{visualiseDim}
|
89fa3af2 |
\usage{
|
846c3061 |
visualiseDim(
sce,
dimNames = NULL,
colour_by = NULL,
shape_by = NULL,
|
a320ea6f |
data_from = c("colData", "assay", "altExp"),
assay_name = NULL,
altExp_name = NULL,
altExp_assay_name = NULL,
|
233354bd |
dim = seq_len(2)
|
846c3061 |
)
|
89fa3af2 |
}
\arguments{
\item{sce}{A singlecellexperiment object}
\item{dimNames}{indicates the name of the reduced dimension results.}
|
a320ea6f |
\item{colour_by}{A character indicates how the cells coloured by.
The information either stored in colData, assay, or altExp.}
|
89fa3af2 |
|
a320ea6f |
\item{shape_by}{A character indicates how the cells shaped by.
The information either stored in colData, assay, or altExp.}
\item{data_from}{A character indicates where the colour by data stored}
\item{assay_name}{A character indicates the assay name of the expression}
\item{altExp_name}{A character indicates the name of alternative expression}
|
7fe9b86b |
\item{altExp_assay_name}{A character indicates the assay name
of alternative expression}
|
89fa3af2 |
|
c3e74dcc |
\item{dim}{a vector of numeric with length of 2 indicates
which component is being plot}
|
89fa3af2 |
}
|
233354bd |
\value{
A ggplot of the reduced dimension visualisation
}
|
89fa3af2 |
\description{
A function to visualise the reduced dimension
}
|
c3e74dcc |
\examples{
|
d26d5e3f |
data(sce_control_subset, package = "CiteFuse")
|
7d0ee522 |
sce_control_subset <- CiteFuse(sce_control_subset)
sce_control_subset <- reducedDimSNF(sce_control_subset,
method = "tSNE",
dimNames = "tSNE_joint")
|
c3e74dcc |
visualiseDim(sce_control_subset, dimNames = "tSNE_joint",
colour_by = "SNF_W_clust")
}
|