       createFactor 'threshold_criterion', TString, [ auc.threshold_criterion ]
     ]
 
-    window.plot.createFrame 'prediction', vectors, (sequence 1), null,
+    createDataframe 'prediction', vectors, (sequence 1), null,
       description: "Prediction output for model '#{model.name}' on frame '#{frame.name}'"
       origin: "getPrediction #{stringify model.name}, #{stringify frame.name}"
 

      createVector 'within_mse', TNumber, output.within_mse
    ]

    window.plot.createFrame 'cluster_means', vectors, (sequence output.size.length), null, 
      description: "Cluster means for k-means model '#{model.key.name}'"
      origin: "getModel #{stringify model.key.name}"


        createVector 'percent', TNumber, percentData
      ]

      createDataframe 'characteristics', vectors, (sequence characteristicData.length), null,
        description: "Characteristics for column '#{column.label}' in frame '#{frameKey}'."
        origin: "getColumnSummary #{stringify frameKey}, #{stringify columnName}"

