Cool! Already a couple of suggestions/tips.
Instead of allowing the user to only one plot variable you can allow them to define multiple plot variables. This way it's easier to check normality for multiple variables. In order to do this you need to change a couple of things.
First, change the
type of "Plot Variable" from "Variable" to "Variable
s" in
qqplot.a.yaml. This changes the options UI so that you can drag multiple variables into the "Plot Variable" box.
Next, you need to change the
qqplot.r.yaml file so that multiple plots will be displayed in the results. Instead of a results object of type "Image", you now first need a results object of type "Array". That would look something like this (check
here for an example in jmv):
Code: Select all
- name: plots
title: Q-Q Normal Plots
type: Array
description: an array of Q-Q plots
items: (vars)
template:
title: $key
type: Image
renderFun: .plot
Last, you need to loop over your array results object as is done over
here. So something like this:
Code: Select all
images <- self$results$plots
for (key in images$itemKeys) {
image <- images$get(key=key)
image$setState(plotData)
}
If you have any questions, let me know.