Description Usage Arguments Examples
Plot an umapscan object
1 2 3 4 5 6 7 8 9 10 11 |
x |
umapscan object to be plotted |
color |
variable to highlight points ( |
palette |
|
label |
legend label |
ellipses |
if TRUE and |
alpha |
points transparency |
fixed |
if TRUE, add |
... |
arguments passed to other methods |
1 2 3 4 5 6 | library(dplyr)
iris_num <- iris %>% select_if(is.numeric)
iris_sup <- iris %>% select(Species)
us <- new_umapscan(iris_num, data_sup = iris_sup, n_neighbors = 25, min_dist = 0.1)
plot(us, color = Species, ellipses = TRUE)
plot(us, color = Sepal.Width, palette = "viridis", alpha = 0.5, fixed = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.