Learn R Programming

HaploCatcher (version 1.0.3)

plot_locus_perm_cv: Visualize Permutation CV Results

Description

This function takes a list of list object from the "locus_perm_cv" function and creates a summary graphic of the accuracy, kappa, sensitivity, and specificity of the models ran. If heterozygous individuals were left in the cross validation scheme, by-class sensitivity and specificity will be displayed; otherwise, displayed parameters will be of the overall model.

Usage

plot_locus_perm_cv(results, individual_images = FALSE)

Value

Prints a ggplot2 image

Arguments

results

An object of class "list" which is derived from the "locus_perm_cv" function.

individual_images

A logical argument that defines if the user wants both the composite image and the full image. Default setting is FALSE.

Examples

Run this code

#refer to vignette for an in depth look at the plot_locus_perm_cv function
vignette("An_Intro_to_HaploCatcher", package = "HaploCatcher")

Run the code above in your browser using DataLab