Learn R Programming

pvLRT (version 0.5.1)

plot.pvlrt: Plotting method for a pvlrt object

Description

Plotting method for a pvlrt object

Usage

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

Value

A ggplot object.

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.

See Also

pvlrt; bubbleplot_pvlrt; heatmap_pvlrt; barplot.pvlrt

Examples

Run this code

# 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")

Run the code above in your browser using DataLab