vis_snps: Visualize the effect of varying a stacks parameter on the...

Description Usage Arguments Value Examples

View source: R/vis_snps.R

Description

This function takes the list of dataframes output by optimize_m(), optimize_M(), or optimize_n() as input. The function then uses ggplot2 to visualize the effect of the given stacks on the number of SNPs retained.

Usage

1
vis_snps(output = NULL, stacks_param = NULL)

Arguments

output

A list containing 5 dataframes generated by optimize_m()

stacks_param

A character string indicating the stacks parameter iterated over

Value

A plot showing the number of SNPs retained at each given parameter value

Examples

1
2
3
vis_snps(output=
readRDS(system.file("extdata","optimize.m.output.RDS",package="RADstackshelpR",mustWork=TRUE)),
         stacks_param = "m")

RADstackshelpR documentation built on Aug. 19, 2021, 5:06 p.m.