Skip to contents

download_point() is a wrapper around zen4R in order to download the large matlab files as well as processed data cubes and simulated data. write_point() stores processed matlab files in the correct directory. save_point() stores ggplots in the correct directory for usage in the paper. load_point() load .rda files of the package.

Usage

download_point(type = "all")

write_point(obj, name = NULL)

save_point(
  name,
  ggplot = ggplot2::last_plot(),
  width,
  height,
  unit,
  type_ms = "preprint",
  output_dir = NULL
)

load_point(type, name, grid_cell = NULL, return_name = FALSE)

Arguments

type

Character string for type of file to be loaded.

obj

Character string of object to store.

name

Character string for graphic based on ggplot or file to be loaded.

ggplot

ggplot object to be stored.

width

Numeric value for width of graphic based on ggplot.

height

Numeric value for height of graphic based on ggplot.

unit

Character string indicating dimension units for graphic based on ggplot.

type_ms

Character string for type manuscript, either "preprint" or "paper".

output_dir

Character string for directory containing the rendered document.

grid_cell

Numeric value of grid_cell size in pixels.

return_name

Logical whether to return file names.

Value

Raw matlab files are stored in the directories `extdata/2020-08-20-GLENDON` and `extdata/2020-08-28-GLENDON`, whereas processed data is stored in the directory `data`. Figures are stored in the directory `paper/2020-08-20-GLENDON`