plot.pvlrt: Plotting method for a pvlrt object

plot.pvlrtR Documentation

Plotting method for a pvlrt object

Description

Plotting method for a pvlrt object

Usage

## S3 method for class 'pvlrt'
plot(x, type = "bubbleplot", ...)

Arguments

x

a pvlrt object; an output of function pvlrt().

type

character string determining the type of plot to show. Available choices are "bubbleplot" which calls bubbleplot_pvlrt, "heatmap" which calls heatmap_pvlrt, and "barplot" which calls barplot.pvlrt, with the additional arguments supplied in ...

...

additional arguments passed to heatmap_pvlrt or barplot.pvlrt depending on type.

Value

A ggplot object.

See Also

pvlrt; bubbleplot_pvlrt; heatmap_pvlrt; barplot.pvlrt

Examples


# 500 bootstrap iterations (nsim) in the example below
# are for quick demonstration only --
# we recommended setting nsim to 10000 (default) or bigger

test1 <- pvlrt(statin46, nsim = 500)
plot(test1, type = "bubbleplot")
plot(test1, type = "barplot")
plot(test1, type = "heatmap")


pvLRT documentation built on March 7, 2023, 7:17 p.m.