plot.extr {ProbBreed}R Documentation

Plots for the extr object

Description

Build plots using the outputs stored in the extr object.

Usage

## S3 method for class 'extr'
plot(x, ..., category = "ppdensity")

Arguments

x

An object of class extr.

...

Passed to ggplot2::geom_histogram, when category = histogram. Useful to change the number of bins.

category

A string indicating which plot to build. See options in the Details section.

Details

The available options are:

See Also

extr_outs

Examples


mod = bayes_met(data = soy,
                gen = "Gen",
                loc = "Loc",
                repl = NULL,
                year = NULL,
                reg = NULL,
                res.het = FALSE,
                trait = 'Y',
                iter = 6000, cores = 4, chains = 4)

outs = extr_outs(model = mod,
                 probs = c(0.05, 0.95),
                 verbose = TRUE)
plot(results, category = "ppdensity")
plot(results, category = "density")
plot(results, category = "histogram")
plot(results, category = "traceplot")



[Package ProbBreed version 1.0.4.0 Index]