Description Usage Arguments Value Note Examples
View source: R/plotting_functions.R
Create a combined beeswarm & activity posterior plot
1 2 3 4 5 6 7 | posterior_beeswarm(
sampler_result,
variant_activities,
color_by_sample = FALSE,
verbose = TRUE,
adjust = 1.5
)
|
sampler_result |
a stanfit object |
variant_activities |
a dataframe of activities (only for the same variant as sampler_result) |
color_by_sample |
optional logical indicating whether to color dots by sample |
verbose |
logical indicating whether to print messages |
adjust |
violin bandwidth adjustment. See ?ggplot2::geom_violin |
a posterior beeswarm ggplot object
sampler_result objects are written by fit_mpra_model to the out_dir argument for each variant_id
1 2 3 | variant_activities = activities_example[activities_example$variant_id == '6_135426558_2-3',]
posterior_beeswarm(example_posterior,
variant_activities)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.