plot.sgsOut: Plot spatial autocorrelation graph

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

Plots a spatial autocorrelation graph with Kinship estimator on y axis and distance on x axis. Each point represents the average kinship estimate within that distance interval. Dashed lines represent 95

Usage

1
2
3
4
## S3 method for class 'sgsOut'
plot(x, overlay = FALSE, max_distance = NULL,
  lwd_avg = 2, col_avg = "black", pch = 19, lwd_CI = 1, lty_CI = 4,
  col_CI = "black", ylab = "Kinship", xlab = "Distance", ...)

Arguments

x

An sgsOut objects that contains results of an sgs analysis

overlay

If TRUE, overlay plot on current plot.

max_distance

Maximum distance to display on x axis. If NULL, defaults to value of largest distance interval

lwd_avg

Line width of line connecting kinship estimates in each distance interval

col_avg

Color of points and line connecting kinship estimates in each distance interval

pch

Point type for average value of kinsihp estimates in each distance interval

lwd_CI

Line width of confidence interval lines

lty_CI

Line type of confidence interval lines

col_CI

Color of confidence interval lines

ylab

Y axis label

xlab

X axis label

...

Arguments to pass to generic plotting functions

Value

A spatial autocorrelation plot

Examples

1
1

lukembrowne/sgsR documentation built on May 21, 2019, 8:58 a.m.