Document section: Script

The purpose of scripts is to generate graphics and perform computations. These can be statistical tests, values to use for experiments or quality checks of user-entered data. The language is subset of R (the language is the same but not all functions are included) and you can see the R website to get an idea about the syntax and also get examples. The script section is however only for simple computations - If you want to use large datasources (e.g. sequencing data files), you are better of using external R and possibly using the Labstory R integration to extract data from Labstory documents.

To obtain data from the rest of the document, you need some special commands. The simplest thing to do is to fetch a table into the script:

table <- import.table("name of my table")
Labstory introduces several functions which only work in the built-in script sections:
lplot.new()
lplot.points()
lplot.hist()
lplot.lines()
(ask us for now for further details)