Learn R Programming

bdrc (version 2.0.0)

plot.tournament: Plot method for a discharge rating curve tournament

Description

Compare the four models from the tournament object in multiple ways

Usage

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

Value

No return value, called for side effects

Arguments

x

An object of class "tournament"

type

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

boxplot

Creates a boxplot of the posterior log-likelihood values, on the deviance scale.

rating_curve

Plots the rating curve.

rating_curve_mean

Plots the posterior mean of the rating curve.

f

Plots the power-law exponent.

sigma_eps

Plots the standard deviation on the data level.

residuals

Plots the log residuals.

tournament_results

Plots a diagram showing the tournament results.

transformed

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

...

Not used in this function

See Also

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

Examples

Run this code
# \donttest{
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 = 'boxplot')
plot(t_obj, type = 'f')
plot(t_obj, type = 'sigma_eps')
plot(t_obj, type = 'residuals')
plot(t_obj, type = 'tournament_results')
# }

Run the code above in your browser using DataLab