The RScriptExporter class is an Exporter that creates an R script to plot one or more surfaces of an engine for two input variables and any number of output variables. More...
#include <RScriptExporter.h>
Public Member Functions | |
| RScriptExporter () | |
| virtual | ~RScriptExporter () FL_IOVERRIDE |
| virtual std::string | name () const FL_IOVERRIDE |
| Returns the name of the exporter. More... | |
| void | setMinimumColor (const std::string &minimumColor) |
| Sets the color to represent the minimum values. More... | |
| std::string | getMinimumColor () const |
| Gets the color to represent the minimum values. More... | |
| void | setMaximumColor (const std::string &maximumColor) |
| Sets the color to represent the maximum values. More... | |
| std::string | getMaximumColor () const |
| Gets the color to represent the maximum values. More... | |
| void | setContourColor (const std::string &contourColor) |
| Sets the color to draw the contour lines. More... | |
| std::string | getContourColor () const |
| Gets the color to draw the contour lines. More... | |
| virtual std::string | toString (const Engine *engine) const FL_IOVERRIDE |
| Returns an R script plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the first two input variables. More... | |
| virtual std::string | toString (Engine *engine, InputVariable *a, InputVariable *b, int values, FldExporter::ScopeOfValues scope, const std::vector< OutputVariable *> &outputVariables) const |
| Returns an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables. More... | |
| virtual std::string | toString (Engine *engine, InputVariable *a, InputVariable *b, std::istream &reader, const std::vector< OutputVariable *> &outputVariables) const |
| Returns an R script plotting multiple surfaces based on the input stream of values for the two input variables. More... | |
| virtual void | toFile (const std::string &filePath, const Engine *engine) const FL_IOVERRIDE |
| Creates an R script file plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the two input variables. More... | |
| virtual void | toFile (const std::string &filePath, Engine *engine, InputVariable *a, InputVariable *b, int values, FldExporter::ScopeOfValues scope, const std::vector< OutputVariable *> &outputVariables) const |
| Creates an R script file plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables. More... | |
| virtual void | toFile (const std::string &filePath, Engine *engine, InputVariable *a, InputVariable *b, std::istream &reader, const std::vector< OutputVariable *> &outputVariables) const |
| Creates an R script file plotting multiple surfaces based on the input stream of values for the two input variables. More... | |
| virtual void | writeScriptImportingDataFrame (const Engine *engine, std::ostream &writer, InputVariable *a, InputVariable *b, const std::string &dataFramePath, const std::vector< OutputVariable *> &outputVariables) const |
| Writes an R script plotting multiple surfaces based on a manually imported data frame containing the data for the two input variables on the output variables. More... | |
| virtual void | writeScriptExportingDataFrame (Engine *engine, std::ostream &writer, InputVariable *a, InputVariable *b, int values, FldExporter::ScopeOfValues scope, const std::vector< OutputVariable *> &outputVariables) const |
| Writes an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables on the output variables. More... | |
| virtual void | writeScriptExportingDataFrame (Engine *engine, std::ostream &writer, InputVariable *a, InputVariable *b, std::istream &reader, const std::vector< OutputVariable *> &outputVariables) const |
| Writes an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables on the output variables. More... | |
Public Member Functions inherited from fl::Exporter | |
| Exporter () | |
| virtual | ~Exporter () |
Protected Member Functions | |
| virtual void | writeScriptHeader (std::ostream &writer, const Engine *engine) const |
| Writes the header of the R script (e.g., import libraries) More... | |
| virtual void | writeScriptPlots (std::ostream &writer, InputVariable *a, InputVariable *b, const std::vector< OutputVariable *> &outputVariables) const |
| Writes the code to generate the surface plots for the input variables on the output variables. More... | |
| virtual RScriptExporter * | clone () const FL_IOVERRIDE |
| Creates a clone of the exporter. More... | |
The RScriptExporter class is an Exporter that creates an R script to plot one or more surfaces of an engine for two input variables and any number of output variables.
Definition at line 40 of file RScriptExporter.h.
| fl::RScriptExporter::RScriptExporter | ( | ) |
|
virtual |
|
protectedvirtual |
| std::string fl::RScriptExporter::getContourColor | ( | ) | const |
Gets the color to draw the contour lines.
| std::string fl::RScriptExporter::getMaximumColor | ( | ) | const |
Gets the color to represent the maximum values.
| std::string fl::RScriptExporter::getMinimumColor | ( | ) | const |
Gets the color to represent the minimum values.
|
virtual |
| void fl::RScriptExporter::setContourColor | ( | const std::string & | contourColor | ) |
Sets the color to draw the contour lines.
| contourColor | is the color to draw the contour lines |
| void fl::RScriptExporter::setMaximumColor | ( | const std::string & | maximumColor | ) |
Sets the color to represent the maximum values.
| maximumColor | is the color to represent the maximum values |
| void fl::RScriptExporter::setMinimumColor | ( | const std::string & | minimumColor | ) |
Sets the color to represent the minimum values.
| minimumColor | is the color to represent the minimum values |
|
virtual |
Creates an R script file plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the two input variables.
| filePath | is the full path of the R script file |
| engine | is the engine to export |
Reimplemented from fl::Exporter.
|
virtual |
Creates an R script file plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables.
| filePath | is the full path of the R script file |
| engine | is the engine to export |
| a | is the first input variable |
| b | is the second input variable |
| values | is the number of values to evaluate the engine |
| scope | is the scope of the number of values to evaluate the engine |
| outputVariables | are the output variables to create the surface for |
|
virtual |
Creates an R script file plotting multiple surfaces based on the input stream of values for the two input variables.
| filePath | is the full path of the R script file |
| engine | is the engine to export |
| a | is the first input variable |
| b | is the second input variable |
| reader | is an input stream of data whose lines contain space-separated input values |
| outputVariables | are the output variables to create the surface for |
|
virtual |
Returns an R script plotting multiple surfaces based on a data frame generated with 1024 values in the scope of FldExporter::AllVariables for the first two input variables.
| engine | is the engine to export |
Implements fl::Exporter.
|
virtual |
Returns an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables.
| engine | is the engine to export |
| a | is the first input variable |
| b | is the second input variable |
| values | is the number of values to evaluate the engine |
| scope | is the scope of the number of values to evaluate the engine |
| outputVariables | are the output variables to create the surface for |
|
virtual |
Returns an R script plotting multiple surfaces based on the input stream of values for the two input variables.
| engine | is the engine to export |
| a | is the first input variable |
| b | is the second input variable |
| reader | is an input stream of data whose lines contain space-separated input values |
| outputVariables | are the output variables to create the surface for |
|
virtual |
Writes an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables on the output variables.
| engine | is the engine to export |
| writer | is the output where the engine will be written to |
| a | is the first input variable |
| b | is the second input variable |
| values | is the number of values to evaluate the engine |
| scope | is the scope of the number of values to evaluate the engine |
| outputVariables | are the output variables to create the surface for |
|
virtual |
Writes an R script plotting multiple surfaces based on a data frame generated with the given number of values and scope for the two input variables on the output variables.
| engine | is the engine to export |
| writer | is the output where the engine will be written to |
| a | is the first input variable |
| b | is the second input variable |
| reader | is an input stream of data whose lines contain space-separated input values |
| outputVariables | are the output variables to create the surface for |
|
protectedvirtual |
Writes the header of the R script (e.g., import libraries)
| writer | is the output where the header will be written to |
| engine | is the engine to export |
|
virtual |
Writes an R script plotting multiple surfaces based on a manually imported data frame containing the data for the two input variables on the output variables.
| engine | is the engine to export |
| writer | is the output where the engine will be written to |
| a | is the first input variable |
| b | is the second input variable |
| dataFramePath | is the path where the data frame should be located (the path will not be accessed, it will only be written to script) |
| outputVariables | are the output variables to create the surface for |
|
protectedvirtual |
Writes the code to generate the surface plots for the input variables on the output variables.
| writer | is the output where the engine will be written to |
| a | is the first input variable |
| b | is the second input variable |
| outputVariables | are the output variables to create the surface for |