plotParamEvolution: Plot the value of a parameter along the optimisation process

View source: R/visualisation.r

plotParamEvolutionR Documentation

Plot the value of a parameter along the optimisation process

Description

Plot the value of a parameter along the optimisation process. The color scale is the objective score. Useful to check the behavior of the optimisation process.

Usage

plotParamEvolution(
  logMh,
  paramName,
  objLims = NULL,
  title = "Evolution of parameter values",
  xlab = "Logged point",
  ylab = paramName
)

Arguments

logMh

an mhData object

paramName

the exact name of one of the model parameters

objLims

optional bounds to apply to the objective function value prior to plotting (e.g. c(0,1) for Nash-Sutcliffe efficiency)

Value

a ggplot object

Examples

## Not run: 
logFileName <- 'F:/path/to/419016_IhacresClassic_19390101_19481231.csv'
logSce <- loadMhLog(logFileName)
logMh <- new("mhData",
   data= logSce,  
   fitness = "NSE.logbias",
   messages = "Message", 
   categories = "Category")
   
geomOps <- subsetByMessage(logMh)
d <- plotParamEvolution(geomOps, 'Tq', objLims=c(0,1))
d

## End(Not run)

jmp75/mhplot documentation built on Feb. 4, 2023, 9:31 p.m.