histogram_permuted_rhos: Create a ggplot object of the distribution of rho values from...

View source: R/histogram_permuted_rhos.R

histogram_permuted_rhosR Documentation

Create a ggplot object of the distribution of rho values from permute_rho(). Function from the phylosmith-package.

Description

Plots the output of permute_rho into a histogram with the distributions shown by treatment. This is a visualization tool to help show how the permutation worked, and to see where the cutoffs lie.

Usage

histogram_permuted_rhos(permuted_rhos, p = NULL,
x_breaks = 0.25, colors = 'default')

Arguments

permuted_rhos

A data.table output from permute_rho.

p

The significance threshold for setting cutoffs.

x_breaks

What intervals to set the ticks on the x-axis.

colors

Name of a color set from the RColorBrewer package or a vector palete of R-accepted colors.

Value

ggplot

See Also

permute_rho

Examples

permuted_rhos <- permute_rho(soil_column, treatment = c('Matrix', 'Treatment'),
replicate_samples = 'Day', permutations = 1,  cores = 0)
histogram_permuted_rhos(permuted_rhos)
histogram_permuted_rhos(permuted_rhos, p = 0.01)

schuyler-smith/phyloschuyler documentation built on March 27, 2024, 4:29 p.m.