R/theme-hy.R

Defines functions theme_hy

Documented in theme_hy

#' Create the default hyplot theme
#' @title hyplot theme
#' @param ... extra params passing to \code{\link[ggplot2]{theme}}.
#' @return The theme.
#' @importFrom ggplot2 theme
#' @importFrom ggplot2 element_text
#' @importFrom ggplot2 element_blank
#' @rdname theme_hy
#' @author Hou Yun
#' @export
theme_hy <- function(...)
{
  theme(
    axis.text = element_text(size = 10.5, colour = "black"),
    axis.title = element_blank(),
    axis.line = element_blank(),
    axis.text.x.top = element_text(angle = 90, hjust = 0, vjust = 0.5),
    axis.text.x.bottom = element_text(angle = 90, hjust = 1, vjust = 0.5),
    ...
  )
}
Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.