PomaDensity | R Documentation |
PomaDensity
generates a density plot for samples and features. This function can be used for data exploration (e.g., comparison between pre and post normalized datasets).
PomaDensity(
data,
x = "samples",
outcome = NULL,
feature_name = NULL,
theme_params = list(legend_title = FALSE)
)
data |
A |
x |
Character. Options are "samples" (to visualize sample density plots) and "features" (to visualize feature density plots). Default is "samples". |
outcome |
Character. Indicates the name of the |
feature_name |
Character vector. Indicates the feature/s to display. Default is NULL (all features will be displayed). |
theme_params |
List. Indicates |
A ggplot
object.
Pol Castellano-Escuder
data <- POMA::st000284 %>% # Example SummarizedExperiment object included in POMA
PomaNorm()
# Sample density plots
data %>%
PomaDensity(x = "samples",
outcome = NULL)
# Sample density plots with covariate as outcome
data %>%
PomaDensity(x = "samples",
outcome = "gender") # change outcome
# All feature density plots
data %>%
PomaDensity(x = "features",
theme_params = list(legend_position = "none"))
# Specific feature density plots
data %>%
PomaDensity(x = "features",
feature_name = c("ornithine", "orotate"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.