plotLoessPred: plotLoessPred function

View source: R/Utilities.R

plotLoessPredR Documentation

plotLoessPred function

Description

Make a nice hexbin plot with the summary from loessPredCount

Usage

plotLoessPred(
  resultMat,
  nSim = nrow(resultMat),
  xlim = NULL,
  ylim = NULL,
  budg1 = 1,
  budg2 = 2,
  binMeanContrast = 3,
  plotMn = T,
  plotHiMn = T,
  plotHiCt = F,
  plotHiPredGain = F,
  giveRange = T
)

Arguments

resultMat

Tibble the simulation results

nSim

Integer Predictions and counts for the first nSim simulations

xlim

Real max and min for plot

ylim

Real max and min for plot

budg1

Integer which column of percent budget to make plot for x-axis

budg2

Integer which column of percent budget to make plot for y-axis

binMeanContrast

Numeric a higher value makes the peak stand out more

plotMn

Logical if TRUE, plot mean of gain for bin not bin counts

plotHiMn

Logical whether to put a red circle at the hexbin with the highest mean

plotHiCt

Logical whether to put a green circle where the most simulations were run

plotHiPredGain

Logical whether to put a blue circle where on the point with the highest LOESS predicted gain

giveRange

Logical whether to put the range of gains in the main title

Details

Makes a plot

Value

A list with bin counts and means and results from LOESS predictions


jeanlucj/BreedSimCost documentation built on July 21, 2023, 1:59 a.m.