Diagnostic.Plots: Create diagnostic plots

View source: R/Diagnostic_Plots.R

Diagnostic.PlotsR Documentation

Create diagnostic plots

Description

This function will generate mixed effect model diagnostic plots following optimization

Usage

Diagnostic.Plots(resistance.mat, genetic.dist, XLAB,YLAB, plot.dir, type, name, ID, ZZ)

Arguments

resistance.mat

Path to CIRCUITSCAPE "_resistances.out" file, or costDistance object created from running gdistance

genetic.dist

Vector of pairwise genetic distances (lower half of pairwise matrix). Can be input as CS.inputs$response

XLAB

Label for x-axis (Defaults to "Estimated resistance")

YLAB

Label for y-axis (Defaults to "Genetic distance")

plot.dir

Directory to output TIFF of diagnostic plots

type

Specify whether the optimized surface is "continuous" or "categorical"

name

The name to be attached to the output file. Must be specified when getting diagnostic plots for gdistance models

ID

The to_from ID list for the MLPE model. The function will automatically create this object, but it can be specified directly from the output of CS.prep or gdist.prep (Default = NULL)

ZZ

The sparse matrix object for the MLPE model. The function will automatically create this object, but it can be specified directly from the output of CS.prep or gdist.prep (Default = NULL)

Value

A multipanel panel .tif including histogram of residuals and qqplot of fitted mixed effects model

Author(s)

Bill Peterman <Peterman.73@osu.edu>

Examples

 
## Not run:
## *** TO BE COMPLETED *** ##

## End (Not run)

wpeterman/ResistanceGA documentation built on Nov. 20, 2023, 11:50 p.m.