labels_photonics: Convenient Labelling for Photonics Graphs

Description Usage Arguments Value Author(s) Examples

Description

Quick expression generation for axes labels, etc.

Usage

1
2
3
4
5
6
7
8

Arguments

subscript

A charcter string for using in the relavent subscript of the expression.

si_prefix

A character string for the SI unit scale prefix. Greek letters may be typed, for example "mu" will display as the greek symbol mu. The default is "phantom()", which produces no prefix.

unit

Unit to use for angles. Default is degree, producing a degree symbol.

Value

A R expression for use in labels and text.

Author(s)

Tom Constant

Examples

1
2
3
4
5
6
7
8
plot(NA,NA,xlim=c(0,1),ylim=c(0,1))
text(0.5,1,label_angular_frequency())
text(0.5,0.9,label_azimuthal_angle())
text(0.5,0.8,label_in_plane_wavevector(subscript="gamma",si_prefix="c"))
text(0.5,0.7,label_polar_angle())
text(0.5,0.6,label_reflection("TM"))
text(0.5,0.5,label_wavelength(si_prefix="mu"))
text(0.5,0.4,label_frequency(si_prefix="G"))

tjconstant/photonMonkey documentation built on Feb. 19, 2018, 7:05 a.m.