Description Usage Arguments Value Examples
View source: R/interact_multi.R
Generates an interactive dimension reduction plot that is color-coordinated with a main feature of interest related to your dataset, and displays additional secondary information upon mouse hover over points.
1 2 3 | interact_multi(count_data, main_info_data, sec_info_data,
dim_red_meth = c("UMAP", "PCA"), your_palette, main_info_name,
sec_info_name)
|
count_data |
dataframe of input data |
main_info_data |
data for main feature of interest for samples of dataset |
sec_info_data |
data for secondary feature of interest for samples of dataset |
dim_red_meth |
dimension reduction method: "pca" or "umap" are the options available now |
your_palette |
the palette of your choice (please see |
main_info_name |
title for main feature of interest |
sec_info_name |
title (or vector of titles in the case of multiple) for the secondary features of interest |
interactive dimension reduction plot that is color-coordinated with a main feature of interest related to your dataset, and displays additional secondary information upon mouse hover over points.
1 2 3 4 5 6 7 | ## Not run:
if(interactive()){
interact_multi(iris[,1:4], iris$Sepal.Length, iris$Species, "UMAP", "viridis", "Sepal Length", "Species")
interact_multi(iris[,1:4], iris$Species, iris[,1:2], "UMAP", "viridis", "Species", c("Sepal Length", "Sepal Width"))
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.