Can JMP draw this pattern?Hello!
Draw a horizontal bar chart of height data,
Graph the data on weight.
Superimpose two graphs on one graph.


Advanced Statistical ModelingData Exploration and VisualizationMass CustomizationWindowsRe: Can JMP draw this pattern?After this, how to use different colors for the "weight" bar chart according to the "gender".Does this "needle" shape reflect different colors?
I still need expert help.
Thanks!

Re: Can JMP draw this pattern?
Thanks Experts!

Re: Can JMP draw this pattern?Thank Jim!

Re: Can JMP draw this pattern?Right click on the legend entry for the line and select Line Color
Re: Can JMP draw this pattern?
Re: Can JMP draw this pattern?Do not create a Group Y, you need to move the axis to the right,.

Re: Can JMP draw this pattern?Thank Jim!
I tried to do it, but at step 4 I couldn't figure out how to do it.And I don't know if I'm dragging correctly?

Re: Can JMP draw this pattern?
Yes. Graph Builder can easily do this.
- I added a transform column set to the Row() and used it for the X axis
- I dragged Height and weight to the Y axis
- Moved Weight to the right side axis
- Then I went into the axis settings for each axis and removed all tick marks and labels.
Documentation on Graph Builder is in the Essential Graphing document
Re: Can JMP draw this pattern?Go ahead and ask the experts: can these different forms of the graph be added together?
Thanks!

to

Re: Can JMP draw this pattern?
Re: Can JMP draw this pattern?The lines are combined with the line chart, which means whatever the line color is, the needles will be the same.
Re: Can JMP draw this pattern?Thank Jim!
This is exactly what I want.How do I change the color of GB1 (bar chart) to red?I still haven't learned.
Re: Can JMP draw this pattern?Here is my attempt. It creates the needle chart transforming the Height and R values to match the range of the Weight and .25% of the r axis. The a FrameBox copy is done from one graph to the other;

names default to here(1);
// Open Data Table: big class.jmp
// â Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dt << new column("r", set each value(Row()));
gb1 = dt << Graph Builder(invisible,
Size( 528, 454 ),
Show Control Panel( 0 ),
Variables(
X( Transform Column( "r 2", Formula( :r * 0.25 ) ) ),
Y(
Transform Column(
"height 2",
Formula(
If( Row() == 1,
ytargetmax = Col Max( :weight );
ytargetmin = Col Min( :weight );
ytargetp = (ytargetmax - ytargetmin) / 100;
ymax = Col Max( :height );
ymin = Col Min( :height );
yrange = ymax - ymin;
);
yp = ((:height - ymin) / yrange) * 100;
ytargetmin + ytargetp * yp;
)
)
)
),
Elements(
Bar( X, Y, Legend( 5 ), Bar Style( "Needle" ), Response Axis( "X" ) )
)
);
gb2 = dt << Graph Builder(
Size( 528, 454 ),
Show Control Panel( 0 ),
Variables( X( :r ), Y( :weight ) ),
Elements( Line( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"weight",
ScaleBox,
{Min( 60.8877083333333 ), Max( 178.48 ), Inc( 20 ), Minor Ticks( 0 )}
)
)
);
report(gb1)[framebox(1)]<<COPY frame="" contents=""></COPY>
Re: Can JMP draw this pattern?excel

Re: Can JMP draw this pattern?Thank you very much!
I learned this method through videos and saw how adding rows can be done this way.

Re: Can JMP draw this pattern?Thank Jarmo!
That's exactly what I want.I want the red graph to be shorter on the X-axis.
Hope to get specific aspects, Thanks!
This kind of graph is easy to draw with Excel, and two data are made into different graphs respectively.Then set the background of one to transparent and overlay it on top of the other.
Re: Can JMP draw this pattern?I know this isn't exactly what you asked for before but I frequently draw graphs similar to this, maybe this recording will give you some ideas on how to make something like what you are looking for:
