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)
df | A |
---|---|
cutoff | The minimum value of |
color | The taxonomic level to color the plot by. Defaults to the first |
facet | Logical. If TRUE, the output plot will be faceted by taxonomic rank. |
verbose | Logical. If FALSE, messages will be supressed. |
This function returns a ggplot
plot of the taxnomic features sorted by their heritability and optionally faceted.
p <- plot_heritability(df, cutoff = 0.3, color = "Class", facet = TRUE, verbose = TRUE)#>#> Error in `*tmp*`$`A_2.5%`: object of type 'closure' is not subsettablep#> Error in eval(expr, envir, enclos): object 'p' not found