Learn R Programming

pvEBayes (version 0.2.1)

plot.pvEBayes: Plotting method for a pvEBayes object

Description

This function defines the S3 plot method for objects of class pvEBayes.

Usage

# S3 method for pvEBayes
plot(x, type = "eyeplot", ...)

Value

A ggplot object.

Arguments

x

a pvEBayes object, which is the output of the function pvEBayes or pvEBayes_tune.

type

character string determining the type of plot to show. Available choices are "eyeplot" which calls eyeplot_pvEBayes and "heatmap" which calls heatmap_pvEBayes. Note that the input for 'type' is case-sensitive.

...

additional arguments passed to heatmap_pvEBayes or eyeplot_pvEBayes.

Examples

Run this code

obj <- pvEBayes(statin2025_44, model = "general-gamma", alpha = 0.5)
plot(obj, type = "eyeplot")

Run the code above in your browser using DataLab