plotweights: Plot distribution of model weights

View source: R/plotweights.R

plotweightsR Documentation

Plot distribution of model weights

Description

Create a plot showing the distribution of cumulative model weights for all fitted climate windows.

Usage

plotweights(
  dataset,
  cw1 = 0.95,
  cw2 = 0.5,
  cw3 = 0.25,
  arrow = FALSE,
  plotall = FALSE,
  plotallenv,
  ThreeD = FALSE
)

Arguments

dataset

A dataframe containing information on all fitted climate windows. Output from slidingwin.

cw1, cw2, cw3

Cumulative weight levels used to visualise model weight distribution. Cumulative weights represent the chance that the best model is contained within a set. For example, there is a 95 percent chance that the best climate window model is contained within the cumulative weight level of 0.95. Parameter values must <= 1.

arrow

TRUE or FALSE. Add arrows to plots to pinpoint best window.

plotall

Used in conjunction with function plotall. Should not be changed manually.

plotallenv

Used in conjunction with function plotall. Should not be changed manually.

ThreeD

TRUE or FALSE. Generate a 3-dimensional plot of the model weight landscape.

Value

Returns a plot showing the distribution of cumulative model weights. Levels determined by parameters cw1,cw2 and cw3.

Author(s)

Liam D. Bailey and Martijn van de Pol

Examples

# Plot distribution of model weights for Mass dataset

data(MassOutput)

plotweights(dataset = MassOutput, cw1 = 0.95, cw2 = 0.75, cw3 = 0.25)

LiamDBailey/climwin documentation built on July 8, 2022, 8:26 p.m.