plot.tournament: Plot method for discharge rating curve tournament

Description Usage Arguments Value See Also Examples

View source: R/tournament_methods.R

Description

Compare the four models from the tournament object in multiple ways

Usage

1
2
## S3 method for class 'tournament'
plot(x, type = "tournament_results", transformed = FALSE, ...)

Arguments

x

an object of class "tournament"

type

a character denoting what type of plot should be drawn. Possible types are

  • "deviance" to plot the deviance of the four models.

  • "rating_curve" to plot the rating curve.

  • "rating_curve_mean" to plot the posterior mean of the rating curve.

  • "f" to plot the power-law exponent.

  • "sigma_eps" to plot the standard deviation on the data level.

  • "residuals" to plot the log residuals.

  • "residuals" to plot tournament results visually, game for game.

transformed

a logical value indicating whether the quantity should be plotted on a transformed scale used during the Bayesian inference. Defaults to FALSE.

...

further arguments passed to other methods.

Value

No return value, called for side effects

See Also

tournament to run a discharge rating curve tournament and summary.tournament for summaries.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(krokfors)
set.seed(1)
t_obj <- tournament(formula=Q~W,data=krokfors,num_cores=2)
plot(t_obj)
plot(t_obj,transformed=TRUE)
plot(t_obj,type='deviance')
plot(t_obj,type='f')
plot(t_obj,type='sigma_eps')
plot(t_obj,type='residuals')
plot(t_obj,type='tournament_results')

bdrc documentation built on July 28, 2021, 5:10 p.m.