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",
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". |
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("st000284")
# Sample density plots
st000284 %>%
PomaNorm() %>%
PomaDensity(theme_params = list(axistext = "y"))
# All feature density plots
st000284 %>%
PomaNorm() %>%
PomaDensity(x = "features", theme_params = list(legend_position = "none"))
# Specific feature density plots
st000284 %>%
PomaNorm() %>%
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.