plot_tsne | R Documentation |
This function plots cells in two dimensions, with various overlays.
plot_tsne(
cell_coord,
md,
md_title,
md_cols = NULL,
md_log = F,
label = NULL,
sel_cells,
sel_cells_A,
sel_cells_B
)
cell_coord |
A numeric matrix where named rows are cells, and two columns are the x and y dimensions of the cell embedding. |
md |
The overlay information. Either a factor or numeric vector matching
the rows (cells) of the |
md_title |
NULL or a character vector of one. If NULL, |
md_log |
Default=FALSE. Logical vector of length one indicating whether
|
label |
Default=NULL. The output of |
sel_cells |
Optional. A character vector of cell names (rownames of
|
sel_cells_A |
Optional. Alternative highlighting method to sel_cells,
can be used in conjunction. Meant for indicating a selected set of cells
when building manual cell set comparisons, in conjunction with
|
sel_cells_B |
Optional. See |
cols |
Default = |
## Not run:
# Cluster overlay:
plot_tsne(cell_coord=getEmb(input_data_obj,"tsne"),
md=Clusters(sCVdata),
md_title=NULL,
label=tsne_labels(sCVd=sCVdata,
cell_coord=getEmb(input_data_obj,"tsne"),
lab_type="ClusterNames"))
# Metadata overlay:
plot_tsne(cell_coord=getEmb(input_data_obj,"tsne"),
md=getMD(input_data_obj)$total_counts,
md_title="Library Size",
md_log=TRUE,
label=tsne_labels(sCVd=sCVdata,
cell_coord=getEmb(input_data_obj,"tsne"),
lab_type="ClusterNames"))
# Gene expression overlay:
plot_tsne(cell_coord=getEmb(input_data_obj,"tsne"),
md=getExpr(input_data_obj,Param(sCVdata,"assayType"))["Actb",],
md_title="Actb")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.