knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

lighting

The goal of lighting is to provide some tools to manipulate data, which are used in the lighting industry. These tools can be categorised into:

Installation

You can install the development version of lighting from GitHub with:

# install.packages("devtools")
devtools::install_github("Wei-Lim/lighting")

Examples

Read LDT file

Reads LDT into a specific light distribution list. For list items definitions see ?ld_data.

library(lighting)

# typical ldt-file (min. example)
file <- system.file('extdata', "ldt_min_example.ldt", package = "lighting")

# specific light distribution
ld_list <- read_ldt(file)

ld_list

Plot light distribution (polar chart)

Plots a typical light distribution data.

plot_light_distribution(ld_list$lum_int_extended_tbl)

Write LDT, convert to IES and export to SVG

# Write LDT 
ld_write_ldt(ld_list)

# Write IES
ld_write_ies_lm63_2002(ld_list)

# Write SVG          
ld_write_svg(ld_list)            


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