R/sim_boxplots.R

Defines functions sim_boxplots

Documented in sim_boxplots

#' Simulation boxplot function
#'
#' @param data A dataframe with columns "parameter" (a character eg "lambda")
#'                                "estimation.method" (eg "Gaussian-lik")
#'                                 "value" (numeric paramter estimates)
#'
#' @return a boxplot
#' @export
#'


sim_boxplots <- function(data){
  require(ggplot2)
  ggplot(data, aes(x=parameter, y=value, fill=estimation.method)) +
    geom_boxplot()
}
jlivsey/LatentGaussCounts documentation built on May 1, 2020, 6:16 a.m.