vis_to_file_impl: Visualize to a file

Description Usage Arguments

View source: R/templates.R

Description

Visualize to a file

Usage

1
2
3
4
vis_to_file_impl(transformer, data, aes, name = NULL, geom = NULL,
  sub_dir = NULL, file = file_path(pkg_name(), sub_dir, time_stamp(name)),
  dimensions = rep(unit(5, "cm"), 2), device = "pdf", return_vis = FALSE,
  ...)

Arguments

transformer

[template parameter] The bare name of the transformer to use, e.g. vis_2d_point.

data

The data to use for plotting.

aes

A string to indicate the column for which a distribution should be shown.

name

The name of the variable to plot. If NULL (the default), the name is inferred form aes.

geom

The bare name of the geom to use. If NULL (the default), it is determined by the class of the data to plot.

sub_dir

The sub-directory to save the plot. merely used to construct the file argument.

file

The path to the file where the visualization should be stored. The file may contain an extension - or the extension can be specified with the device argument.

dimensions

Height and width constructed with grid::unit(), passed to ggplot2::ggsave().

device

The device passed to ggplot2::ggsave().

return_vis

Whether or not the plot should, in addition to being written to a file, be the return value of the function call.

...

Variables to select. You can use tidy selectors such as starts_with(...), see tidyselect::select_helpers() for details.


lorenzwalthert/simplificar documentation built on May 7, 2019, 9:32 a.m.