Skip to contents

Plot the top cell type associations for a given trait.

Usage

plot_top_associations(trait_res, fdr = T, limit = 10)

Arguments

trait_res

A data.frame or data.table object of cell type associations detected by seismic. It is expected that this data object contains a minimum of three columns: cell_type, p_value, and FDR.

fdr

A Boolean value determining if FDR should be plotted. If false p-values are used for the plot. Defaults to printing FDR.

limit

A positive integer limiting the number of top cell types to be shown. Default is 10 cell types.

Value

A ggplot bar plot object.