Attribute Chart
Example 1
Summary: Visualizes the distribution of baby sleep patterns by creating an Attribute Chart with response variables A, B, and C, part variable Part, standard variable Standard, and enabling the Effectiveness Report.
Code:
// Attribute Chart
// Open data table
dt = Open("data_table.jmp");
// Attribute Chart
Attribute Chart(
Y( :A, :B, :C ),
X( :Part ),
Standard( :Standard ),
Effectiveness Report( 1 )
);
Code Explanation:
- Open data table.
- Create attribute chart.
- Set response variables.
- Set part variable.
- Set standard variable.
- Enable effectiveness report.
Example 2
Summary: Creates an Attribute Chart to analyze data from a table, with customization options for scale boxes and formatting.
Code:
dt = Open("data_table.jmp");
Attribute Chart(
Y( :A, :B, :C ),
X( :Part ),
Standard( :Standard ),
Variability Chart( 1 ),
Connect Effectiveness Points( 1 ),
SendToReport(
Dispatch( {"Gauge Attribute Chart"}, "2", ScaleBox, {Format( "Custom", Formula( Char( value ) || "%" ), 12 )} ),
Dispatch( {"Gauge Attribute Chart"}, "2", ScaleBox( 2 ), {Format( "Custom", Formula( Round( value ^ 0.5, 2 ) ), 12 )} )
)
);
Code Explanation:
- Open data_table data
- Create Attribute Chart.
- Set Y variables: A, B, C.
- Set X variable: Part.
- Use Standard variable.
- Enable Variability Chart.
- Connect Effectiveness Points.
- Customize first scale box.
- Format values as percentage.
- Customize second scale box.
- Format values as square root rounded.
Example 3
Summary: Creates an attribute chart to visualize relationships between variables A, B, and C across different parts, utilizing standardization for effective analysis.
Code:
Names Default To Here( 1 );
dt = Open("data_table.jmp");
obj = Attribute Chart( Y( :A, :B, :C ), X( :Part ), Standard( :Standard ) );
Code Explanation:
- Set default names.
- Open data table.
- Create attribute chart.
- Set response variables.
- Set part variable.
- Set standard variable.
Example 4
Summary: Creates an Attribute Chart with customized settings, including response variables A, B, and C, part variable, standard variable, variability chart, and effectiveness points.
Code:
dt under test = Open("data_table.jmp");
obj = Attribute Chart(
Y( :A, :B, :C ),
X( :Part ),
Standard( :Standard ),
Variability Chart( 1 ),
Effectiveness Report( 0 ),
Show Effectiveness Points( 1 ),
Connect Effectiveness Points( 1 ),
Agreement by Rater Confid Intervals( 0 ),
SendToReport(
Dispatch( {}, "Attribute Gauge", OutlineBox,
{Set Title(
"Attribute Gauge Chart, Show Agreement Points, connect Agreement Points, Show Agreement grand Mean, Show Effectiveness Points, Connect Effectiveness Points"
)}
)
)
);
Code Explanation:
- Open data table.
- Create attribute chart object.
- Set response variables A, B, C.
- Set part variable.
- Set standard variable.
- Enable variability chart.
- Disable effectiveness report.
- Show effectiveness points.
- Connect effectiveness points.
- Customize chart title.
Example 5
Summary: Creates an attribute chart to analyze variables A, B, and C with respect to part and standard, including a variability chart.
Code:
dt under test = Open("data_table.jmp");
obj = Attribute Chart( Y( :A, :B, :C ), X( :Part ), Standard( :Standard ), Variability Chart( 1 ) );
Code Explanation:
- Open data table.
- Create attribute chart object.
- Set response variables A, B, C.
- Set part variable.
- Set standard variable.
- Enable variability chart.
Example 6
Summary: Creates an attribute chart from a data table, specifying response variables A, B, and C, part variable Part, and standard variable Standard.
Code:
dt = Open("data_table.jmp");
obj = Attribute Chart( Y( :A, :B, :C ), X( :Part ), Standard( :Standard ) );
obj << Save Script to Data Table("data_table");
Code Explanation:
- Open data table.
- Create attribute chart.
- Set response variables.
- Set part variable.
- Set standard variable.
- Save script to data table.
- Name script "testscript".
Example 7
Summary: Creates an Attribute Chart with response variables A, B, and C, factor variable Part, standard variable Standard, and shows effectiveness points, connecting them to display agreement intervals.
Code:
dt under test = Open("data_table.jmp");
obj = Attribute Chart(
Y( :A, :B, :C ),
X( :Part ),
Standard( :Standard ),
Variability Chart( 1 ),
Effectiveness Report( 0 ),
Show Effectiveness Points( 1 ),
Connect Effectiveness Points( 1 ),
Agreement by Rater Confid Intervals( 0 ),
SendToReport(
Dispatch( {}, "Attribute Gauge", OutlineBox,
{Set Title(
"Attribute Gauge Chart, Show Agreement Points, connect Agreement Points, Show Agreement grand Mean, Show Effectiveness Points, Connect Effectiveness Points"
)}
)
)
);
Code Explanation:
- Open table.
- Create attribute chart.
- Set response variables.
- Set factor variable.
- Set standard variable.
- Enable variability chart.
- Disable effectiveness report.
- Show effectiveness points.
- Connect effectiveness points.
- Set chart title.
Example 8
Summary: Creates and analyzes an attribute chart to explore relationships between variables A, B, C, and Part, with missing value codes set and report generated.
Code:
dt = Open("data_table.jmp");
obj = Attribute Chart( Y( :A, :B, :C ), X( :Part ), Standard( :Standard ), Variability Chart( 1 ), Connect Effectiveness Points( 1 ) );
:Part << Set Property( "Missing Value Codes", {1} );
obj2 = obj << Redo Analysis;
rpt = obj2 << Report;
actN = (rpt[Number Col Box( 4 )][1]);
Code Explanation:
- Open data table.
- Create attribute chart.
- Set missing value code.
- Redo analysis.
- Generate report.
- Extract number column box.
- Retrieve first element.
Attribute Chart using New Column
Summary: Creates an Attribute Chart with multiple effects and generates a profiler plot, utilizing the 'New Column' and 'Attribute Chart' functions in JMP.
Code:
dt = Open("data_table.jmp");
dt << add rows( 78599 );
dt << New Column( "row", Numeric, "Continuous", Format( "Best", 12 ), Formula( Row() ) );
obj = dt << Attribute Chart( Y( :A, :B, :C ), X( :Part ) );
Code Explanation:
- Open data table;
- Add 78599 rows.
- Create "row" column.
- Set column formula to row number.
- Generate Attribute Chart.
- Set Y variables: A, B, C.
- Set X variable: Part.