Skip to contents

Batch plot Helped function that is used in the batch_cascade_plot. Takes a data frame, cascade number, plot file type, and image path. Returns a ggplot2 object.

Usage

batch_plot(
  msd_df,
  cscd_num,
  export = TRUE,
  imgtype = ".png",
  imgpath = "Images"
)

Arguments

msd_df

msd based data frame to be passed through cascade call

cscd_num

number from the cascade plot see plot_name for a crosswalk

export

logical to control saving of plot, TRUE by default

imgtype

type of image to save (default = .png, .svg, .jpeg,)

imgpath

path where images are saved ("Images" set as default)

Value

a ggplot2 object

Examples

if (FALSE) {
plt <- batch_plot(df_sub, cscd_num = 1, export = T, imgtype = ".png", imgpath = "Images")}