UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

21 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VisualizeFunctions = void 0; const default_builtin_config_1 = require("../../../../dataflow/environments/default-builtin-config"); const LinkToPlotCreation = [ { type: 'link-to-last-call', callName: default_builtin_config_1.PlotCreate } ]; exports.VisualizeFunctions = // plot creation default_builtin_config_1.GgPlotCreate.map(f => ({ package: 'ggplot2', name: f })).concat(default_builtin_config_1.TinyPlotCrate.map(f => ({ package: 'tinyplot', name: f })), default_builtin_config_1.GraphicsPlotCreate.map(f => ({ name: f })), // plot modification default_builtin_config_1.GgPlotImplicitAddons.concat(default_builtin_config_1.GgPlotAddons).map(f => ({ package: 'ggplot2', name: f, linkTo: LinkToPlotCreation })), default_builtin_config_1.TinyPlotAddons.map(f => ({ package: 'tinyplot', name: f, linkTo: LinkToPlotCreation })), default_builtin_config_1.GraphicsPlotAddons.map(f => ({ name: f, linkTo: LinkToPlotCreation }))).map(f => { if (f.name !== 'hist') { return f; } else { // ignore if plot is false. return { ...f, ignoreIf: 'arg-false', additionalArgs: { val: { argIdx: 17, argName: 'plot', resolveValue: true } } }; } }); //# sourceMappingURL=visualize-functions.js.map