View source: R/ggplot_functions.r
get_stats_gg | R Documentation |
ggplot
friendly data format.Helper function to convert the bootstrapped dissimilarities from
matrix format to ggplot2
friendly data format.
get_stats_gg(x, probs = c(0.025, 0.975))
x |
A matrix of bootstrapped dissimilarities from
|
probs |
A numeric vector of two probabilities in the interval |
A list of two data frames to be used with
ggplot
. First one, stats_df
is a 4 columns data
frame, containing the sample size/number of sampled interactions
(spl_size
) at each step and the corresponding mean dissimilarity (mean
)
together with its bootstrap confidence interval limits (ci_low
, ci_up
).
The second one, lines_df
, contains all the bootstrapped dissimilarities
(value
) at each bootstrap iteration (simulation_id
) and its
corresponding sample size/sampled interactions (spl_size
). Can be used
for enhancing visual effect when plotting the mean bootstrap values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.