% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_exposure_omics_association.R
\name{plot_exposure_omics_association}
\alias{plot_exposure_omics_association}
\title{Plot Exposure-Omics Associations}
\usage{
plot_exposure_omics_association(
  exposomicset,
  plot_type = c("exposures", "category"),
  pval_col = "p_adjust",
  pval_thresh = 0.05
)
}
\arguments{
\item{exposomicset}{A \code{MultiAssayExperiment} object containing association results.}

\item{plot_type}{Character. One of \code{"exposures"} or \code{"category"}. Controls
whether associations are summarized per exposure or per exposure category.
Defaults to \code{"exposures"}.}

\item{pval_col}{Character. Name of the column used for p-value filtering.
Defaults to \code{"p_adjust"}.}

\item{pval_thresh}{Numeric. Significance threshold applied to \code{pval_col}.
Rows with values below this threshold are retained. Defaults to \code{0.05}.}
}
\value{
A \code{ggplot} object.
}
\description{
Plots the number of significant exposure-omics associations, grouped
either by exposure or the exposure category.
}
\examples{
# create example data
mae <- make_example_data(
    n_samples = 20,
    return_mae = TRUE
)

# run exposure-omics association
mae <- mae |>
    run_exposure_omics_association(
        exposures = c("exposure_pm25", "exposure_no2"),
        covariates = c("age", "sex")
    )

plot_exposure_omics_association(
    exposomicset = mae,
    plot_type = "exposures"
)

}
