interact_multi: interact_multi

Description Usage Arguments Value Examples

View source: R/interact_multi.R

Description

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.

Usage

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)

Arguments

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 colour_values documentation to see options)

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

Value

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.

Examples

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)

octaviamd/interactmapper documentation built on Nov. 4, 2019, 10:14 p.m.