Nothing
#' Plot Metric Response To Network Rarefaction
#'
#' Used to plot the output from \code{RarefyNetwork()}. See vignette!
#'
#' @param df A data frame produced by RarefyNetwork
#'
#' @return A ggplot
#'
#' @examples
#' data(Safariland, package = 'bipartite')
#' X<-RarefyNetwork(Safariland, n_per_level = 100)
#' ComputeCI(X)
#'
#' @export
PlotRarefaction <- function(df){
#### Because tidyverse functions don't give visible bindings, which CRAN complains about,
#### need to to define names here to stop Note.
SampleSize<-NULL;Value<-NULL
df %>%
tidyr::gather('Metric', 'Value', -SampleSize)%>%
ggplot(aes(x= factor(SampleSize), y = Value) )+
geom_boxplot()+
facet_wrap(~Metric,scales = 'free_y')
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.