cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Graph Builder Hands-on Activities Solutions

These hands-on activities allow you to practice building graphs in JMP using Graph Builder. This post contains the Graph Builder hands-on activities, the data, and a PDF file of these solutions in English.

Level 1

1.  Open the Australin Tourism data table and create the following graph.

Di_Michelson_0-1690558660036.png

a) Open Australian Tourism.jmp.

b)  Select Graph > Graph Builder.

c)  Select Revenue ($’000), then drag it to the Y zone.

Di_Michelson_0-1690559992931.png

d) Select Bed occupancy rate (%), then drag it to the Y zone below Revenue.

Di_Michelson_1-1690560012183.png

e)  Select Average length of stay (days), then drag it to the Y zone below Bed occupancy rate.

Di_Michelson_2-1690560029959.png

f)  Select Date and drag it to the X zone.

Di_Michelson_3-1690560049535.png

g) Remove the smooth curve by clicking the second button from the left on the Elements bar.

Di_Michelson_4-1690560073617.png

h) Press and hold the Shift key and click the Line element on the Elements bar.

Di_Michelson_5-1690560095462.png

Di_Michelson_6-1690560102273.png

Note that if you change to the Line element without keeping the Points element, the Legend might not show the Points. You can bring back the Points in the Legend by clicking the red triangle next to Graph Builder, selecting Legend Settings, then selecting the checkboxes next to the Points.

i) Right-click on legend item for Revenue, select Marker, then select the open diamond marker.

j) Right-click the legend item for Bed Occupancy, select Marker, then select the open circle marker.

k) Right-click the legend item for Average length of stay, select Marker, then select the open square marker.

Di_Michelson_7-1690560151849.png

l) Click Done.

m) Click the graph title and enter Tourism Trends.

n) Click the red triangle next to Graph Builder and select Show > Legend.

Di_Michelson_8-1690560242206.png

 

2. Open the Dose Response data table and create the following graph.

Di_Michelson_1-1690558680897.png

a) Open Dose Response.jmp.

b) Select Graph > Graph Builder.

c) Drag Dose to the X zone.

d) Drag Patient 1 to the Y zone.

e) Drag Patient 2, Patient 3, Patient 4, and Patient 5 to the Y zone, dropping just inside the axis to add the variables.

Di_Michelson_9-1690560361367.png

f) Remove the smooth curve by clicking the Smoother element in the Elements bar.

g) Press and hold the Shift key and click the Line element in the Elements bar.

Di_Michelson_10-1690560387928.png

Note that if you change to the Line element without keeping the Points element, the Legend might not show the Points, so the next steps are unnecessary.

h) Click Done.

i) Click the title and enter Diastolic BP vs. Dose.

j) Click the Y axis label and enter Diastolic BP.

k) Click the red triangle next to Graph Builder and select Legend Settings.

l) Deselect the first five checkboxes.

Di_Michelson_11-1690560425003.png

m) Click OK.

Di_Michelson_12-1690560444008.png

An alternate solution is to first stack the data, then use the new Patient column in the Overlay role.

a) Return to the Dose Response data table.

b) Select Tables > Stack.

c) Select Patient 1 through Patient 5, then click Stack Columns.

d) In Output table name, enter Dose Response Stacked.

e) In Stacked Data Column, enter Diastolic BP.

f) In Source Label Column, enter Patient.

Di_Michelson_13-1690560507214.png

g) Click OK.

h) Select Graph > Graph Builder.

i) Drag Diastolic BP to the Y zone.

j) Drag Dose to the X zone.

k) Drag Patient to the Overlay zone.

l)  Remove the Smoother and add the Line element as before.

m) Click Done.

n) Change the Legend Settings as before.

Di_Michelson_14-1690560555586.png

 

3. Open the Car Physical Data data table and create the following graph.

Di_Michelson_2-1690558701528.png

a) Open Car Physical Data.jmp.

b) Select Graph > Graph Builder.

c) Drag Gas Tank Size to the Y role.

d) Click the box plot element on the Elements bar.

Di_Michelson_15-1690560596021.png

e) Drag Type to the X role.

f) Drag Country to the Overlay role.

g) Click Done.

Di_Michelson_16-1690560628354.png

 

4. Open the Sales by Quarter data table and create the following graph.

Di_Michelson_3-1690558737164.png

a) Open Sales by Quarter.jmp.

b) Select Graph > Graph Builder.

c) Drag Year to the X axis.

d) Drag Quarter to just inside the X axis, to nest Quarter within Year.

Di_Michelson_17-1690560688579.png

e) Drag Min Sales, Median Sales, and Max Sales to the Y zone.

Di_Michelson_18-1690560713271.png

f) Click the Bar element on the Elements bar.

Di_Michelson_19-1690560742591.png

g) In the Control Panel, click the drop-down next to Bar Style and select Interval.

Di_Michelson_21-1690560775325.png

h) Open the Variables outline, select Median Sales, then click the down arrow.

Di_Michelson_22-1690560797211.png

Note that there are other ways to drag variables to zones to get the same graph.

i) Click Done.

j) Click the graph title and enter Sales by Quarter.

k) Click the Y axis label and enter Sales ($1000).

l) Click the red triangle next to Graph Builder and select Legend Settings.

m) Double-click Min Sales…Max Sales and enter Range.

n)  Double-click Median Sales and enter Median.

Di_Michelson_23-1690560862914.png

o) Click OK.

Di_Michelson_24-1690560880749.png

Level 2

5. Open the Likert Survey data table. Examine the columns, especially notice the formula columns, then create the following graph.

Di_Michelson_4-1690558772973.png

a) Open Likert Survey.jmp.

The first column represents the question number. The next six columns represent the number of respondents to the question. The final four columns are used to build the graph. They were created using formulas on the original columns in order to build the graph. Notice the scale of the X axis and how the strongly disagree and disagree values need to be negative. Also note that the -neutral and +neutral columns will be used to force the gray neutral bar to be centered at zero.

b) Select Graph > Graph Builder.

c) Drag question to the Y zone.

d) Right-click the Y axis and select Axis Settings.

e) Check the Reverse Order box.

Di_Michelson_25-1690560979163.png

f) Click OK.

Di_Michelson_26-1690560995750.png

g) Select agree through +neutral, then drag those six columns to the X zone.

Di_Michelson_27-1690561012746.png

h) Select the bar element on the Elements bar.

Di_Michelson_28-1690561031403.png

Di_Michelson_29-1690561038393.png

i) In the control panel, click the drop-down menu next to Bar Style and select Stacked.

Di_Michelson_30-1690561077327.png

j) In the control panel, open the Variables outline.

k) Select -neutral and click the up arrow four times.

Di_Michelson_31-1690561101597.png

l) Repeat the previous step to order the X variables appropriately: -neutral, -disagree-strongly disagree, +neutral, agree, strongly agree.

Di_Michelson_32-1690561131846.png

m) Right-click -neutral in the Legend and select Fill Color, then select a light gray.

n) Right-click -disagree in the Legend and select Fill Color, then select a light red.

o) Right-click -strongly disagree in the Legend and select Fill Color, then select a dark red.

p) Right-click +neutral in the Legend and select Fill Color, then select the same light gray.

q) Right-click agree in the Legend and select Fill Color, then select a light green.

r)  Right-click strongly agree in the Legend and select Fill Color, then select a dark green.

Di_Michelson_33-1690561169767.png

s) Click the red triangle next to Graph Builder and select Legend Settings.

Di_Michelson_34-1690561190432.png

t) Select -strongly disagree, then click the up arrow twice.

u) Select -disagree, then click the up arrow once.

Di_Michelson_35-1690561214809.png

v) Deselect the -neutral checkbox.

w) Double-click -strongly disagree and enter strongly disagree.

x) Double-click -disagree and enter disagree.

y) Double-click +neutral and enter neutral.

Di_Michelson_36-1690561249832.png

z) Click OK.

aa) Click the red triangle next to Graph Builder and select Legend Position > Bottom.

bb) Click Done.

cc) Select the graph title and enter Survey Responses.

dd) Select the X axis title and hit the backspace to remove it.

Di_Michelson_37-1690561292789.png

 

 6. The DOE Results data table contains data from a designed experiment. A full factorial (all combinations) of factors X1, X2, X3 was performed, and the response Y for each treatment combination was recorded.

A main effects plot shows the average value of the response at each level of the factors. A two-factor interaction plot shows the average value of the response at each level of two of the factors.

Create graphs to show the main effects and two-factor interaction effects.

a) Open DOE Results.jmp.

b) Select Graph > Graph Builder.

c) Drag Y to the Y zone.

d) Drag X1 to the X zone

Di_Michelson_0-1690566839090.png

e) Drag X2 to the X zone, to the right of X1.

Di_Michelson_1-1690566856831.png

f) Drag X3 to the X zone to the right of X2.

Di_Michelson_2-1690566880658.png

g) Under Points[X1], click the drop-down next to Summary Statistic and select Mean.

h) Repeat for Points[X2] and Points[X3].

i) Press and hold the shift key and select the Line element from the Elements bar.

Di_Michelson_3-1690566910602.png

j) Click Done.

k) Click the graph title and enter Main Effects Plot.

l) Click the red triangle next to Graph Builder and select Show > Legend.

Di_Michelson_4-1690566949931.png

X1 has the biggest main effect. Does the effect of X1 depend on the level of the other two factors? If so, there is an interaction effect.

m) Click Start Over. (Or open a new Graph Builder window)

n) Drag Y to the Y zone.

o) Drag X2 to the X zone.

p) Drag X1 to the Overlay zone.

Di_Michelson_5-1690567016403.png

q) In the control panel, click the drop-down next to Summary Statistic and select Mean.

r) Press and hold the Shift key, then select the Line element from the Elements bar.

Di_Michelson_6-1690567289388.png

The graph shows that the effect of X2 depends on the value of X1 because the lines are not parallel. (You can test this hypothesis using the Model script in the data table.)

It can be instructive to view the interaction plot with X1 on the X axis and X2 in the Overlay role.

s)  Right-click the X axis and select Swap > X1.

Di_Michelson_7-1690567324584.png

The interaction again can clearly be seen. Often one of these two views offers a clearer interpretation of the interaction effect. It is up to you to decide how to best display the effects.

Note that the Fit Least Squares platform automatically generates interaction plots, including static plots like these and interactive plots using the Profiler.

You can use the same steps to create the interaction plots for X1-X3 and X2-X3. Those steps are not shown here, but the graphs are shown below. Also included is a graph that shows all 24 observations using the Group X and Group Y roles.

When building these graphs for a presentation, be sure to click the Done button, give the graph a descriptive title, and perhaps change colors, markers, and the legend for clarity in publication.

Di_Michelson_8-1690567342106.png  Di_Michelson_9-1690567356111.png

Di_Michelson_10-1690567369561.png  Di_Michelson_11-1690567379743.png

Di_Michelson_12-1690567393220.png

 

7. The Potter data table contains measurements taken on different examples of pottery jugs from three different potters. Use Graph Builder to make a scatterplot of two of the continuous variables, then switch columns to find relationships that vary depending on the potter.

a) Open Pottery.jmp.

b) Select Graph > Graph Builder.

c) Drag Height to the Y drop zone.

d) Drag Neck to the X drop zone.

Di_Michelson_0-1690567477842.png

e) Drag Potter to the Overlay zone.

f) Click the smoother icon in the Elements bar.

Di_Michelson_1-1690567509793.png

g) Click Done.

h) Right-click Byrd in the Legend and select Marker, then select the open diamond marker.

i) Right-click Pagett in the Legend and select Marker, then select the open circle marker.

j) Right-click Reynar in the Legend and select Marker, then select the open square marker.

Di_Michelson_2-1690567544551.png

k) Click the red triangle next to Graph Builder and select Redo > Column Switcher.

l) In the Select Replacement Columns box, select all columns.

Di_Michelson_3-1690567578721.png

m) Click OK.

n) Again, click the red triangle next to Graph Builder and select Redo > Column Switcher.

o) In the Select Replacement Columns box, select all columns.

Di_Michelson_4-1690567607506.png

p) Click OK.

Di_Michelson_5-1690567627645.png

These variables show separation between Pagett and the other two potters. Examine other variables to see where there is more or less separation. Some examples are shown below.

Di_Michelson_6-1690567649615.png  Di_Michelson_7-1690567657192.png

Recommended Articles