saveResults: Save figure and statistics results

View source: R/resultSaving.R

saveResultsR Documentation

Save figure and statistics results

Description

Save figure and statistics results

Usage

saveResults(
  dataset,
  foldername = "",
  filename = NULL,
  factors = NULL,
  active_factor = NULL,
  analysis_name = NULL,
  facets = NULL,
  figure = NULL,
  width = 18,
  height = 12,
  stat_results = NULL,
  other_results = NULL,
  suffix = "",
  forcesave = F,
  verbose = T
)

Arguments

dataset

Dataset to associate these results with. Directory path is pulled from the dataset

foldername

(Optional) Name of the directory within save_directory

filename

(Optional) Name of file to save figure and statistics under

factors

(Optional) Factors of the dataset

active_factor

(Optional) The active factor of this analysis

analysis_name

(Optional) Name for this analysis

facets

(Optional) Facets if there were any facets in this analysis

figure

(Optional) The plot object to be saved

width

(Optional) Width of the image to be saved in inches

height

(Optional) Height of the image to be saved in inches

stat_results

(Optional) Table of statistics results to be saved

other_results

(Optional) Table of other results to be saved

suffix

(Optional) Any suffix to be added to the end of the file name

forcesave

If set to TRUE, the function acts as if "autosave" is TRUE

verbose

If set to TRUE, will print out the location of file saving

Value

save_directory


microresearcher/MicroVis documentation built on Feb. 8, 2024, 10:59 a.m.