Learn R Programming

besthr (version 0.3.2)

plot.hrest: plots the hrest object

Description

returns a ggplot object representing the hrest object from estimate. The content of left panel varies according to the value of the which parameter. If which = "rank_simulation" is used a plot of rank score values will be plotted in the left panel. In this case technical replicates will be averaged if provided. If which = "just_data" a plot of scores only is created and technical replicates are displayed as is. In each case, the right hand panel shows the rank bootstrap distribution and confidence interval boundaries for all non- control groups.

Usage

# S3 method for hrest
plot(x, ..., which = "rank_simulation")

Value

ggplot object

Arguments

x

the hrest object from estimate

...

Other parameters

which

the type of left hand panel to create. Either "rank_simulation" or "just_data"

Examples

Run this code

 d1 <- make_data()
 hr_est <- estimate(d1, score, group)
 plot(hr_est)

Run the code above in your browser using DataLab