% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme_hts.R
\name{theme_hts}
\alias{theme_hts}
\title{Modern academic ggplot2 theme for diffHTS figures}
\usage{
theme_hts(
  base_size = 12,
  base_family = "",
  legend = "bottom",
  grid = c("y", "x", "both", "none")
)
}
\arguments{
\item{base_size}{Base font size in points. Default \code{12}.}

\item{base_family}{Base font family; defaults to the device sans-serif.}

\item{legend}{Legend position passed to \code{ggplot2::theme()}. Default
\code{"bottom"}.}

\item{grid}{Which major grid lines to keep: \code{"y"} (default), \code{"x"}, \code{"both"}
or \code{"none"}.}
}
\value{
A \link[ggplot2:theme]{ggplot2::theme} object that can be added to any ggplot.
}
\description{
A minimal, publication-ready theme: pure-white background, an L-shaped axis
(left and bottom only), light dashed horizontal major grid lines with no
minor grid, restrained dark-grey typography and generous margins. Pair it
with \code{\link[=hts_pal]{hts_pal()}} for discrete colours or a \code{viridis}/muted-blue gradient for
continuous ones.
}
\examples{
library(ggplot2)
ggplot(mtcars, aes(factor(cyl), mpg)) +
  geom_boxplot() +
  theme_hts()

}
\seealso{
\code{\link[=hts_pal]{hts_pal()}}, \code{\link[=plot_plate_qc]{plot_plate_qc()}}
}
