plot_light_distribution: Plots a polar chart of a light distribution

View source: R/lighting_distribution.R

plot_light_distributionR Documentation

Plots a polar chart of a light distribution

Description

plot_light_distribution() returns a ggplot polar chart of a light distribution using the extended luminous intensity data, which are stored in a ld_list, like ld_data.

Usage

plot_light_distribution(
  lum_int_extended_tbl,
  line_color = "#BCCF03",
  line_width = 1,
  title = "",
  x_lab = expression(gamma ~ "[°]"),
  y_lab = expression("I [cd/1000 lm]")
)

Arguments

lum_int_extended_tbl

A tibble of extended luminous intensity data

line_color

A text in hex colour format

line_width

A numeric, which controls the line size of ggplot2::geom_line()

title

The text for the plot title

x_lab

The text for the x-axis label

y_lab

The text for the y-axis label

Value

A ggplot2 object with polar chart visualisation

Examples

plot_light_distribution(ld_data$lum_int_extended_tbl)
plot_light_distribution(
  ld_data$lum_int_extended_tbl,
  title = "Test title",
  x_lab = "x-axis",
  y_lab = "y-axis"
)


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