Summarize data from simulations in a form to make a nice hexbin plot Return both counts in bins and bin means

loessPredCount(
  nSim = nrow(resultMat),
  resultMat,
  xlim = NULL,
  ylim = NULL,
  budg1 = 1,
  budg2 = 2
)

Arguments

nSim

Integer Predictions and counts for the first nSim simulations

resultMat

Tibble the simulation results

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

Value

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

Details

Use the hexbin function to tabulate 2D bins in hexagonal array