ld_write_svg: Write a 'ld_list' polar chart to a SVG file

View source: R/lighting_distribution.R

ld_write_svgR Documentation

Write a ld_list polar chart to a SVG file

Description

ld_write_svg() exports the ggplot2 object of the specific light distribution list ld_list as a SVG graphic file (*.svg).

Usage

ld_write_svg(ld_list, file)

Arguments

ld_list

A specific light distribution list

file

The path to file without extension.

Value

ld_write_svg() returns the ggplot2 object invisibly.

Examples

ld_data$plot <- ld_data %>% ld_add_light_distribution_plot()

# ld_write_svg() will write the file to the current working directory, if
# it is unspecified without directory path.
## Not run: 
ld_write_svg(ld_data, file = "test")

## End(Not run)

Wei-Lim/lighting documentation built on Oct. 17, 2023, 3:20 p.m.