Learn R Programming

interfr (version 0.1.0)

AddCompensators: Shows the color changes when using sensible and quarter compensators

Description

AddCompensators takes coordinates of one point on the interference chart (either provided as a named list or interactively selected on the chart using locator) and adds five circles to the plot: a black one centered on the selected interference color, and four that correspond to adding or substracting the retardations of a quarter plate (grey circles) and a sensible plate (red circles).

Usage

AddCompensators(loc = locator(1), type = "RS", quarter = 147.3,
  sensible = 530)

Arguments

loc

A named list with members x and y , or an interactive selection.

type

Chart type (Raith-Sorensen or Michel-Levy), see PlotChart.

quarter

Numeric, the retardation of the quarter slab (in nanometers).

sensible

Numeric, the retardation of the lambda slab (in nanometers).

Value

Called for its side effect of adding circles to an existing plot

See Also

locator, PlotChart

Examples

Run this code
# NOT RUN {
PlotChart(IC=IC1,type="RS",x.lims=range(IC1[,2]),Thickness = 4000)
AddCompensators()
# the same without interactive selection:
PlotChart(IC=IC1,type="RS",x.lims=range(IC1[,2]),Thickness = 4000)
AddCompensators(loc=list("x"=0.0002566569,"y"=3999.757))
# }

Run the code above in your browser using DataLab