Function to plot Omori's law corresponding to different posterior samples
Source:R/plottingFunctions.R
omori_plot_posterior.RdFunction to plot Omori's law corresponding to different posterior samples
Arguments
- input.list
structured input
listwith at least two elements:model.fit:bruobject used to sample the posterior of the ETAS parameterslink.functions:listof functions to convert the ETAS parameters from the INLA scale to the ETAS scale
- post.samp
data.framecontaining posterior samples of the parameters. IfNULL, thenn.sampsamples are generated. Ifn.sampis different fromnrow(post.samp)thenn.samprows are uniformly sampled frompost.samp. Default isNULL.- n.samp
Number of posterior samples,
integer(default = 10).- t.end
Upper bound of the x-axis,
scalar(default = 1).- n.breaks
Number of points between 0 and
t.endto calculate the function,integer(default = 100).