Visualize n samples from an mtdi_generator object

# S4 method for mtdi_generator,ANY
plot(x, y = NULL, n = 20, col = "gray", ...)

Arguments

x

An mtdi_generator object

y

Included for compatibility with generic signature

n

Number of samples to draw from hyperprior for visualization

col

Color of lines used to depict samples

...

Additional arguments passed onward to plot

Examples

if (interactive()) {
mtdi_gen <- hyper_mtdi_lognormal(CV = 1
                                ,median_mtd = 5
                                ,median_sdlog = 0.5
                                ,units="mg/kg")
plot(mtdi_gen, n=100, col=adjustcolor("red", alpha=0.5))
}