public void toFile ( File file , Engine engine , InputVariable a , InputVariable b , Reader reader , List < OutputVariable > outputVariables ) throws IOException { BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( file ) , FuzzyLite . UTF_8 ) ) ; try { writeScriptExportingDataFrame ( engine , writer , a , b , reader , outputVariables ) ; } catch ( RuntimeException ex ) { throw ex ; } catch ( IOException ex ) { throw ex ; } finally { writer . close ( ) ; } }
Creates an R script file plotting multiple surfaces based on the input stream of values for the two input variables .