Hi, I am using R.ScriptAggrExStr to draw a decision tree.
Now I want put 2 trees (tree A/B) and a filter pane in one page, tree A can change by filter, while tree B will not.
But I don't know how to lock the variables.
E.g. my expression is:
R.ScriptAggrExStr('SNSN','
library(rpart);
library(partykit);
library(d3r);
library(grid);
library(jsonlite);
d3_party(rpart(survived ~ ., data=q, method="class"));
',
sex, pclass, age_b, survived)
How can I lock sex/pclass/age_b/survive to make them not change by filter?