plot.simaerep | R Documentation |
generic plot function for simaerep objects
## S3 method for class 'simaerep'
plot(
x,
...,
study = NULL,
what = "ur",
n_sites = 16,
df_visit = NULL,
env = parent.frame()
)
x |
simaerep object |
... |
additional parameters passed to plot_study() or plot_visit_med75() |
study |
character specifying study to be plotted, Default: NULL |
what |
one of c("ur", "med75"), specifying whether to plot site AE under-reporting or visit_med75 values, Default: 'ur' |
n_sites |
number of sites to plot, Default: 16 |
df_visit |
optional, pass original visit data if it cannot be retrieved from parent environment, Default: NULL |
env |
optional, pass environment from which to retrieve original visit data, Default: parent.frame() |
see plot_study() and plot_visit_med75()
ggplot object
df_visit <- sim_test_data_study(
n_pat = 100,
n_sites = 5,
frac_site_with_ur = 0.4,
ur_rate = 0.6
)
df_visit$study_id <- "A"
aerep <- simaerep(df_visit)
plot(aerep, what = "ur", study = "A")
plot(aerep, what = "med75", study = "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.