En utilisant JMP 16, j'ai créé le graphique suivant

Le tableau de données contient 3 points de données pour chaque âge

J'ai ouvert Graph Builder et j'ai fait glisser la colonne Données vers la zone de dépôt Y, la colonne Âge vers la zone de dépôt X et j'ai également fait glisser la colonne Âge vers la zone de dépôt Superposition

J'ai ensuite ajouté une ligne et coché la case Ordre des lignes

(a ajusté la limite de gigue pour les points

Il ne restait plus qu'à changer le marqueur et la couleur du marqueur pour chacun des paramètres de légende.

Names default to here(1);
New Table(
"Example",
Add Rows( 18 ),
New Column( "Age", Ordinal,
Set Values(
[12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17]
)
),
New Column( "Data",
Format( "Fixed Dec", 12, 1 ),
Set Values(
[51, 58.125, 66, 56, 60.2857142857143, 65, 61, 64.1666666666667, 69, 62,
64.5714285714286, 67, 60, 64.3333333333333, 68, 62, 66.6666666666667, 70
]
)
)
);
Graph Builder(
Size( 525, 448 ),
Show Control Panel( 0 ),
Error Bar Offset( 0 ),
Graph Spacing( 0 ),
Variables( X( :age ), Y( :Data ), Overlay( :age ) ),
Elements(
Line( X, Y, Legend( 7 ), Row order( 1 ), Missing Values( "No Connection" ) ),
Points( X, Y, Legend( 11 ), Jitter Limit( 0 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties( 0, {Line Color( 0 )}, Item ID( "12", 1 ) ),
Properties( 1, {Line Color( 0 )}, Item ID( "13", 1 ) ),
Properties( 2, {Line Color( 0 )}, Item ID( "14", 1 ) ),
Properties( 3, {Line Color( 0 )}, Item ID( "15", 1 ) ),
Properties( 4, {Line Color( 0 )}, Item ID( "16", 1 ) ),
Properties( 5, {Line Color( 0 )}, Item ID( "17", 1 ) )
), Legend Model(
11,
Base( 0, 0, 0, Item ID( "12", 1 ) ),
Base( 1, 0, 0, Item ID( "13", 1 ) ),
Base( 2, 0, 0, Item ID( "14", 1 ) ),
Base( 3, 0, 0, Item ID( "15", 1 ) ),
Base( 4, 0, 0, Item ID( "16", 1 ) ),
Base( 5, 0, 0, Item ID( "17", 1 ) ),
Properties(
0,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "12", 1 )
),
Properties(
1,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "13", 1 )
),
Properties(
2,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "14", 1 )
),
Properties(
3,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "15", 1 )
),
Properties(
4,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "16", 1 )
),
Properties(
5,
{Line Color( 0 ), Marker( "Minus" )},
Item ID( "17", 1 )
)
)}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Marker Size( 6 ), Marker Drawing Mode( "Normal" )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {7, [6, 7, 8, 9, 10, 11], 11, [0, 1, 2, 3, 4, 5]} )}
)
)
);
Cette approche fonctionnera si vous avez trois colonnes différentes.
New Table( "Untitled 9",
Add Rows( 5 ),
New Script(
"Low & 2 more vs. x",
Graph Builder(
Size( 518, 454 ),
Show Control Panel( 0 ),
Variables(
X( :x ),
Y( :Low ),
Y( :Mid, Position( 1 ) ),
Y( :Upper, Position( 1 ) )
),
Elements(
Bar( X, Y( 1 ), Y( 3 ), Legend( 7 ), Bar Style( "Interval" ) ),
Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 8 ) ),
Line( X, Y( 2 ), Legend( 9 ) )
)
)
),
New Column( "Low", Numeric, "Continuous", Format( "Best", 12 ),
Set Values( [1, 1.4, 3.6, 2.1, 2.3] )
),
New Column( "Mid", Numeric, "Continuous", Format( "Best", 12 ),
Set Values( [3, 3.7, 5, 3, 4] )
),
New Column( "Upper", Numeric, "Continuous", Format( "Best", 12 ),
Set Values( [5.1, 6.4, 7, 5.2, 6.7] )
),
New Column( "x", Numeric, "Continuous", Format( "Best", 12 ),
Set Values( [1, 2, 3, 4, 5] )
)
);
Après avoir exécuté ce script, cliquez sur le triangle vert pour générer le graphique.
