Help with a script created from graph builder: value ordering/sorting and image exportHello,
Is there anyone with fairly comprehensive JSL/JMP skills willing to look at a script I have exported and modified slightly from what I created in graph builder?
There have been helpful folks trying to answer my questions piece-meal, but once I fall of the radar so to speak, I can't seem to resolve all of my issues. I think if I had even one person with skills to look at what I've done so far and what issues I'm having, they would probably resolve it quickly. I've been trying to go through the scripting guide and google searching with key words (for instance, after finding a tip about using the Enhanced Log I found a couple of easy errors to fix), but I just don't think I have the skills to accomplish a couple of other things successfully in a reasonable amount of time while also having a lot of graphs to make.
Attached is a PDF of my script so far with what the graphs looks like.
This is the script based on bar graphs I’ve already made with some modifications produces the following graph (note- at the bottom of the attachment is a screen capture of the script that shows an easier structure to read)…
Thanks so much for any help!
AnalyticsData TableGraphicsScriptingWindowsRe: Help with a script created from graph builder: value ordering/sorting and image exportUsing Big Class as example dataset. This script should get you maybe going:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Size(569, 466),
Show Control Panel(0),
Variables(X(:name), Y(:weight), Group Y(:sex)),
Elements(Points(X, Y, Legend(4)))
); //by default F is top in Sex
wait(2);
//add Value orders column property first manually, then right click and copy column properties
Column(dt, "sex") << Add Column Properties(
Set Property("Value Order", {Custom Order({"M", "F"}), Common Order(0)})
);
//jmp high quality graphics:
//https://community.jmp.com/t5/JMPer-Cable/Getting-high-quality-graphics-out-of-JMP/bc-p/425162#M656
rep = gb << report;
rep << Save Picture("$TEMP/test.emf", "emf");
rep << Save PDF("$TEMP/test.pdf");
Open("$TEMP");