Plots the output from calculate_ACE() which contains the A.C.E. model of heritabily (with confidence intervals).

plot_heritability(df, cutoff, color, facet = TRUE, verbose = TRUE)

Arguments

df

A data.frame that is the output from calculate_ACE.

cutoff

The minimum value of A to display. Defaults to the cutoff at which the top 25% of taxonomic features are displayed.

color

The taxonomic level to color the plot by. Defaults to the first rank_names.

facet

Logical. If TRUE, the output plot will be faceted by taxonomic rank.

verbose

Logical. If FALSE, messages will be supressed.

Value

This function returns a ggplot plot of the taxnomic features sorted by their heritability and optionally faceted.

Examples

p <- plot_heritability(df, cutoff = 0.3, color = "Class", facet = TRUE, verbose = TRUE)
#> The data.frame not found or is not an object of class 'data.frame'.
#> Error in `*tmp*`$`A_2.5%`: object of type 'closure' is not subsettable
p
#> Error in eval(expr, envir, enclos): object 'p' not found