theme_hpa()
creates a theme for ggplot2 plots that is used by the Human Protein Atlas (HPA) project.
Usage
theme_hpa(angled = FALSE, axis_x = TRUE, axis_y = TRUE, facet_title = TRUE)
Arguments
- angled
If TRUE, the x-axis text is angled at 90 degrees. Default is FALSE.
- axis_x
If FALSE, the x-axis is removed. Default is TRUE.
- axis_y
If FALSE, the y-axis is removed. Default is TRUE.
- facet_title
If FALSE, the facet title is removed. Default is TRUE.
Value
A ggplot2 theme object.
Examples
# Create a plot
plot <- example_metadata |>
ggplot2::ggplot(ggplot2::aes(x = Sex)) +
ggplot2::geom_bar()
plot
# Apply the HPA theme
plot + theme_hpa()