R/pir_plot_from_file.R

Defines functions pir_plot_from_file

Documented in pir_plot_from_file

#' Plot the error BEAST2 make from the known phylogeny
#' @param pir_out_filename name of the file with the saved
#' output as created by \code{\link{pir_run}}
#' @return a ggplot2 plot
#' @seealso
#'   Use \link{pir_plot} to directly plot the return value
#'   of \link{pir_run}
#' @author Richèl J.C. Bilderbeek
#' @export
pir_plot_from_file <- function(pir_out_filename) {

  pir_out <- utils::read.csv(pir_out_filename)
  pirouette::pir_plot(pir_out)
}

Try the pirouette package in your browser

Any scripts or data that you put into this service are public.

pirouette documentation built on Oct. 7, 2023, 9:06 a.m.