cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
RahBarroso
Level II

How to change interval lines on Plot Col Boxes

 

Hello,

 

I’m trying to create a table box report from student t-test results that I can use for a report. When you run a students t-test in the Fit Y by X platform, each run has a Plot Col Box that shows the difference, lower and upper CL as a range, which is coloured by whether the CL’s cross the reference line of 0 difference.

RahBarroso_0-1730905102778.png

 

RahBarroso_1-1730905102780.png

 

 

The challenge I’m having is when I try to recreate this and bring in a Plot Col Box, when I add a reference line, the points turn red, regardless of whether they have crossed the CL (See the same data below, plotted in my tablebox).

RahBarroso_2-1730905102781.png

 

 

I have found ‘set interval line properties’ in the Scripting Index but there is no guide for how to use it, you can see in the attached script I have tried to use it to set the properties to match those found in the Fit Y by X report, but no change happens, and the reported values change away from the values I have set them to. The Plot Col Box has options to change the bar colour when the plot type is set to bars, but I don’t see any easy way to change intervals.

 

Any clarification would be appreciated!

 

Thanks!

 

1 REPLY 1
jthi
Super User

Re: How to change interval lines on Plot Col Boxes

Maybe this example provides some help

Names Default To Here(1);
New Window("Example",
	Table Box(pcb = Plot Col Box("Probability", {25, 45}))
);
pcb << Set Plot Style("Interval");
pcb << Set Scale(0, 55);
pcb << Lower([10, 20]);
pcb << Upper([30, 50]);
pcb << Set Reference Line(11);

pcb << Set primary interval line properties("Red", "Red", "Green");

jthi_0-1730908788200.png

 

-Jarmo