mrggsave 0.3.2

  • Add support for ggsurvplot objects #11
  • Force unit of textGrob.y to be inch to ensure consistent bottom margin
  • Add support for patchwork objects #26
  • Add support for gTree objects #34
  • Fix file extension to pdf when cairo_pdf device is used #36

mrggsave 0.3.0

  • Validate as CR 102

mrggsave 0.2.0.9001

  • Add support for the following devices: pdf, png, tiff, jpeg, eps, ps, bmp, svg (#13)
  • Add ability to save last plot when it was created with ggplot2 (see the mrggsave_last function); this gets the last plot via ggplot2::last_plot (#12)
  • Add ability to save a named list of plots; when the list is named and the use_names argument is invoked, plots will get written out to their own file names (#14)
  • Add method for handing ggsurvplot objects (#11)
  • Pass the file name through glue::glue once it is formed from either stem or tag (e.g. stem = "dv_pred_{runnumber}") (#15)
  • Add named_plots function to generate plot names (and eventually file names) from the code used to generate the plot (#14)
  • Add non-exported context function to set the output file name when using tag argument; context is set and is in effect via option until the context is changed or reset; use context_clear
  • Removed support for objects created with patchwork

mrggsave 0.2.0

  • Validate and release

mrggsave 0.1.0.9002

  • Added ncol as a formal argument; when ncol > 1, we set arrange to TRUE
  • Added mrggpage function as a wrapper around gridExtra::arrangeGrob
  • Added mrggsave_list, which takes in a list of objects that are ready to label and to save without arrangement
  • Changed mrggdraw so that all it does is draw a plot or plots, possibly after arranging
  • mrggdraw now returns processed plots invisibly so that they may be passed into mrggsave
  • Added internal generic mrggsave_prep_object and methods so that plots of different types can be passed directly to mrggsave_common
  • Added mrggsave.gList for saving gList objects
  • When tag or stem are given as a vector, the vector is collapsed using _ as a separator first prior to forming any output file names
  • When a file name is formed from tag, a _ separator is automatically placed between script and the (possibly collapsed) tag value
  • Added support for gtable objects
  • Added a default mrggsave method that assumes the object is a grob
  • Added argument to mrggpage to allow a list of plots to be arranged across multiple pages; added methods for handling arrangelist objects coming out of gridExtra::marrangeGrob

mrggsave 0.1.0

  • Initial validation

mrggsave 0.0.1.9001

  • Pre-release