README.md

lcdiagrammer

The goal of lcdiagrammer is to provide a way of producing schematic (symbolic and simplified) diagrams of Liquid Crystal (LC) alignments.

Example

Add package to search path

library(lcdiagrammer)

Generate LC diagrams with default settings. Using the seed argument keeps the same molecule positions between plots.

par(mfrow=c(1,2))
lcd(45, -45, seed=1)
lcd(45, 135, seed=1)

Add bounding surfaces

Here run with rectangles rather than elipses

par(mfrow=c(1,2))
lcd(45, -45, strate1 = 0.05, strate2=0.05, mol="rect")
lcd(45, 135, strate1 = 0.05, strate2=0.05, mol="rect")

Edit colours and change aspect ratio of diagram

par(mfrow=c(1,2))
lcd(0, 360, strate1 = 0.05, strate2=0.05, mol="rect", right=2, bg_col = "lightblue")
lcd(0, 360, strate1 = 0.05, strate2=0.05, mol="rect", top=2, right=0.5, lc_col = "darkgoldenrod1")



dickie-roper/lcdiagrammer documentation built on Nov. 4, 2019, 10:31 a.m.