View source: R/plotScatterViz.R
plotScatterViz | R Documentation |
Scater Plot
x |
|
x_numeric |
A column in |
y_numeric |
A column in |
color_var |
A column in |
point_size |
|
point_opacity |
|
point_shape |
|
side_panel |
Logical. If side density to plot. Default is TRUE |
side_panel_scale |
|
A simple plotting utility for visualization of two numerical
variables. Provided two numerical
variable present in sample_data
of a
phyloseq-class
object, a scatter plot is returned.
a ggplot
object.
Sudarshan A. Shetty
Shetty SA (2021). Data visualization for microbiome analytics. https://github.com/microsud/biomeViz
library(biomeUtils) library(biomeViz) library(dplyr) library(microbiome) library(ggplot2) ps <- FuentesIliGutData plotScatterViz(ps, x_numeric = "age", y_numeric = "BMI", color_var = "ILI") + scale_fill_manual(values=c("steelblue", "brown3", "grey70"))+ scale_fill_manual(values=c("steelblue", "brown3", "grey70"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.