plot_bivariate.Rd
Create a scatter or boxplot from a tomic dataset.
plot_bivariate(
tomic_table,
x_var,
y_var,
color_var = NULL,
shape_var = NULL,
alpha_var = NULL,
size_var = NULL
)
A table taken from a tidy (i.e., augmented measurements) or triple omic dataset
x-axis variable
y-axis variable
coloring variable (NULL to suppress coloring)
shape variable (NULL to suppress shape)
alpha variable or numeric for constant alpha (NULL to suppress alpha)
size variable or integer/numeric for constant size (NULL to suppress size)
a ggplot2 grob
library(dplyr)
brauer_augmented <- brauer_2008_tidy %>%
add_pcs(npcs = 5) %>%
tomic_to("triple_omic")
#> 40 features dropped due to missing values
tomic_table <- brauer_augmented$samples
plot_bivariate(tomic_table, "PC1", "PC2", "nutrient", "nutrient", 0.5, 10)
plot_bivariate(tomic_table, "PC1", "PC2", NULL)
plot_bivariate(tomic_table, "nutrient", "PC2", "nutrient")