Write generated code to .R files
Arguments
- spec
A spec from
tfl_read_fig_spec()ortfl_fig_spec().- dir
Output folder; files are named
<plot_id>.R.- plot_id
Plot id(s);
NULL= all plots.- adam
Optional ADaM data (
tfl_read_adam()). When given, codelist values (colours, factor levels, legend items) are resolved from the data and written literally into the code; variable labels become axis labels.