plot_tsne | R Documentation |
tSNE graphs colored according to QC metrics or sample labels.
plot_tsne(tsne_df, qc_df = NULL, comm_df = NULL, info_df = NULL)
tsne_df |
the output data.frame from |
qc_df |
a data.frame with QC metrics (output from |
comm_df |
a data.frame with communities (output from |
info_df |
a data.frame with sample merge info (output from
|
If the QC data.frame is provided, the distribution of QC metrics is shown to investigate if some communities are batch effects.
If multiple samples were merged (merge_samples
), the
points can be colored by sample of origin by providing the info_df
data.frame.
If any qc_df/comm_df/info_df are null but their columns present in tsne_df,
their corresponding graphs will be generated. Hence a merged version of
tsne_df, comm_df, qc_df and info_df works (e.g. output of
auto_cna_signal
.
a list of ggplot objects
Jean Monlong
## Not run: ggp.l = plot_tsne(tsne_df, qc_df, comm_df) ## Print first graph ggpl.l[[1]] ## Customize ggplot ggpl.l[[1]] + ggtitle('First tSNE graph') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.