Datenpunkte mit JSL verbindenHallo
Ich versuche, Datenpunkte innerhalb eines Diagramms in einer bestimmten Reihenfolge zu verbinden (z. B. beim Erstellen eines Diamantdiagramms usw.). Wenn ich manuell eine Verbindung mit Linie herstelle und das Skript exportiere, sehe ich, dass es die Linienfunktion mit (X,Y)-Koordinaten verwendet. Kann mir bitte jemand helfen?
1. Ich gehe davon aus, dass (X, Y) Rahmenkoordinaten sind?
2. Wenn 1. wahr ist, wie finde ich diese (X,Y) mithilfe von JSL heraus? Genauer gesagt, möchten Sie die Syntax zum Extrahieren des Frames (X,Y) für jeden Datenpunkt im Diagramm kennen?
Gibt es eine andere effiziente Möglichkeit, Datenpunkte in JMP zu verbinden?


Vielen Dank
Automatisierung und SkripterstellungMassenanpassungBetreff: Datenpunkte mit JSL verbindenKein Wort, um all Ihre Hilfe zu würdigen. Tausend Dank.
Betreff: Datenpunkte mit JSL verbindenIch habe Ihr Skript ein wenig angepasst, aber das Hauptproblem besteht darin, dass Ihr Code davon ausgeht, dass Sie alle Kombinationen von Gruppe1, Gruppe2 und Gruppe3 haben, was in den von Ihnen angegebenen Daten nicht der Fall ist, sodass das Programm keine Daten zur Analyse finden kann .
names default to here(1);
dtt = Current Data Table();
Summarize( dtt, byGroup1 = by( :var1 ) );
Summarize( dtt, byGroup2 = by( :var2 ) );
Summarize( dtt, byGroup3 = by( :var3 ) );
For( ii = 1, ii < N Items( byGroup1 ), ii++,
For( jj = 1, jj < N Items( byGroup2 ), jj++,
For( kk = 1, kk < N Items( byGroup3 ), kk++,
dtt << select where( :var1 == byGroup1[ii] & :var2 == byGroup2[jj] & :var3 == byGroup3[kk] );
show(ii,jj,kk,bygroup1[ii],bygroup2[jj],bygroup3[kk]);
sel = dtt << get selected rows;
If( n rows(sel) > 0,
show("inside",ii,jj,kk);
dt = dtt << subset( selected rows(1), selected columns(0));
gb = dt << Graph Builder(
Size( 531, 456 ),
Show Control Panel( 0 ),
Variables( X( :x axis ), Y( :y axis ), Overlay( :legend ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"x axis",
ScaleBox,
{Format( "Best", 12 ), Min( 2.273568 ), Max( 3.00134902479339 ), Inc( 0.1 ), Minor Ticks( 0 )}
)
)
);
// Add a simple graphics script to connect the points
Report( gb )[FrameBox( 1 )] << add graphics script(
Summarize( dt, byGroup = by( :legend ) );
colorList = {"Blue", "Red", "Green"};
Fill Pattern( [0] );
For( i = 1, i <= N Items( byGroup ), i++,
Pen Color( colorList[i] );
theRows = dt << get rows where( :legend == byGroup[i] & :Label != "i" );
// Add the first value as the last value to complete the object
theRows = theRows |/ theRows[1];
xMatrix = :x axis[theRows];
yMatrix = :y axis[theRows];
Line( xMatrix, yMatrix );
);
););
)
)
);Betreff: Datenpunkte mit JSL verbindenVielen Dank für die Hilfe. Ich schätze es sehr. Ich habe noch eine Frage und wäre Ihnen dankbar, wenn Sie mir helfen könnten.
Ich habe eine große Tabelle, die aus vielen Teilmengen besteht (die Tabelle, die ich Ihnen geschickt habe) und von drei weiteren zusätzlichen Spalten gesteuert wird. Ich habe versucht, eine Teilmenge von Tabellen zu erstellen (jede wie die, die ich Ihnen geschickt habe) und den folgenden Code innerhalb von drei For-Schleifen anzuwenden. Irgendwie funktioniert die Generierung der Teilmengentabelle nicht.
dtt = Current Data Table();
Summarize( dtt, byGroup1 = by( :var1 ) );
Summarize( dtt, byGroup2 = by( :var2 ) );
Summarize( dtt, byGroup3 = by( :var3 ) );
For( ii = 1, ii < N Items( byGroup1 ), ii++,
For( jj = 1, jj < N Items( byGroup2 ), jj++,
For( kk = 1, kk < N Items( byGroup3 ), kk++,
dt = dtt << subset(
select where( :var1 == byGroup1[ii] & :var2 == byGroup2[jj] & :var3 == byGroup3[kk] )
);
gb = dt << Graph Builder(
Size( 531, 456 ),
Show Control Panel( 0 ),
Variables( X( :x axis ), Y( :y axis ), Overlay( :legend ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"x axis",
ScaleBox,
{Format( "Best", 12 ), Min( 2.273568 ), Max( 3.00134902479339 ), Inc( 0.1 ),
Minor Ticks( 0 )}
)
)
);
// Add a simple graphics script to connect the points
Report( gb )[FrameBox( 1 )] << add graphics script(
Summarize( dt, byGroup = by( :legend ) );
colorList = {"Blue", "Red", "Green"};
Fill Pattern( [0] );
For( i = 1, i <= N Items( byGroup ), i++,
Pen Color( colorList[i] );
theRows = dt << get rows where( :legend == byGroup[i] & :Label != "i" );
// Add the first value as the last value to complete the object
theRows = theRows |/ theRows[1];
xMatrix = :x axis[theRows];
yMatrix = :y axis[theRows];
Line( xMatrix, yMatrix );
);
);
);
);
);
| x-Achse |
y-Achse |
Etikett |
Legende |
var1 |
var2 |
var3 |
| 2.385649 |
2.260832 |
A |
Set 1 |
con1 |
con11 |
con111 |
| 2.385782 |
2.261566 |
A |
Satz2 |
con1 |
con11 |
con111 |
| 2.418368 |
2.291898 |
A |
Satz3 |
con1 |
con11 |
con111 |
| 2.297858 |
2.445948 |
B |
Set 1 |
con1 |
con11 |
con111 |
| 2.297908 |
2.446336 |
B |
Satz2 |
con1 |
con11 |
con111 |
| 2.331846 |
2.475788 |
B |
Satz3 |
con1 |
con11 |
con111 |
| 2.385649 |
2.649821 |
C |
Set 1 |
con1 |
con11 |
con111 |
| 2.385782 |
2.649944 |
C |
Satz2 |
con1 |
con11 |
con111 |
| 2.418368 |
2.674239 |
C |
Satz3 |
con1 |
con11 |
con111 |
| 2.587473 |
2.730171 |
D |
Set 1 |
con1 |
con11 |
con111 |
| 2,587765 |
2.730239 |
D |
Satz2 |
con1 |
con11 |
con111 |
| 2.618502 |
2.753243 |
D |
Satz3 |
con1 |
con11 |
con111 |
| 2.817405 |
2.649821 |
e |
Set 1 |
con1 |
con11 |
con111 |
| 2.817657 |
2.649944 |
e |
Satz2 |
con1 |
con11 |
con111 |
| 2.839774 |
2.674239 |
e |
Satz3 |
con1 |
con11 |
con111 |
| 2.905865 |
2.445948 |
F |
Set 1 |
con1 |
con11 |
con111 |
| 2.90615 |
2.446336 |
F |
Satz2 |
con1 |
con11 |
con111 |
| 2.925915 |
2.475788 |
F |
Satz3 |
con1 |
con11 |
con111 |
| 2.817405 |
2.260832 |
G |
Set 1 |
con1 |
con11 |
con111 |
| 2.817657 |
2.261566 |
G |
Satz2 |
con1 |
con11 |
con111 |
| 2.839774 |
2.291898 |
G |
Satz3 |
con1 |
con11 |
con111 |
| 2.587473 |
2.181713 |
H |
Set 1 |
con1 |
con11 |
con111 |
| 2,587765 |
2.182677 |
H |
Satz2 |
con1 |
con11 |
con111 |
| 2.618502 |
2.213788 |
H |
Satz3 |
con1 |
con11 |
con111 |
| 2.587473 |
2.445948 |
ich |
Set 1 |
con1 |
con11 |
con111 |
| 2,587765 |
2.446336 |
ich |
Satz2 |
con1 |
con11 |
con111 |
| 2.618502 |
2.475788 |
ich |
Satz3 |
con1 |
con11 |
con111 |
| 2.624214 |
2.486915 |
A |
Set 1 |
con2 |
con22 |
con222 |
| 2.62436 |
2.487723 |
A |
Satz2 |
con2 |
con22 |
con222 |
| 2.660205 |
2.521088 |
A |
Satz3 |
con2 |
con22 |
con222 |
| 2.527644 |
2.690543 |
B |
Set 1 |
con2 |
con22 |
con222 |
| 2,527699 |
2.69097 |
B |
Satz2 |
con2 |
con22 |
con222 |
| 2.565031 |
2.723367 |
B |
Satz3 |
con2 |
con22 |
con222 |
| 2.624214 |
2.914803 |
C |
Set 1 |
con2 |
con22 |
con222 |
| 2.62436 |
2.914938 |
C |
Satz2 |
con2 |
con22 |
con222 |
| 2.660205 |
2.941663 |
C |
Satz3 |
con2 |
con22 |
con222 |
| 2.84622 |
3.003188 |
D |
Set 1 |
con2 |
con22 |
con222 |
| 2.846542 |
3.003263 |
D |
Satz2 |
con2 |
con22 |
con222 |
| 2.880352 |
3.028567 |
D |
Satz3 |
con2 |
con22 |
con222 |
| 3.099146 |
2.914803 |
e |
Set 1 |
con2 |
con22 |
con222 |
| 3.099423 |
2.914938 |
e |
Satz2 |
con2 |
con22 |
con222 |
| 3.123751 |
2.941663 |
e |
Satz3 |
con2 |
con22 |
con222 |
| 3.196452 |
2.690543 |
F |
Set 1 |
con2 |
con22 |
con222 |
| 3.196765 |
2.69097 |
F |
Satz2 |
con2 |
con22 |
con222 |
| 3.218507 |
2.723367 |
F |
Satz3 |
con2 |
con22 |
con222 |
| 3.099146 |
2.486915 |
G |
Set 1 |
con2 |
con22 |
con222 |
| 3.099423 |
2.487723 |
G |
Satz2 |
con2 |
con22 |
con222 |
| 3.123751 |
2.521088 |
G |
Satz3 |
con2 |
con22 |
con222 |
| 2.84622 |
2.399884 |
H |
Set 1 |
con2 |
con22 |
con222 |
| 2.846542 |
2.400945 |
H |
Satz2 |
con2 |
con22 |
con222 |
| 2.880352 |
2.435167 |
H |
Satz3 |
con2 |
con22 |
con222 |
| 2.84622 |
2.690543 |
ich |
Set 1 |
con2 |
con22 |
con222 |
| 2.846542 |
2.69097 |
ich |
Satz2 |
con2 |
con22 |
con222 |
| 2.880352 |
2.723367 |
ich |
Satz3 |
con2 |
con22 |
con222 |
| 2.743496 |
2,599957 |
A |
Set 1 |
con3 |
con32 |
con33 |
| 2.743649 |
2.600801 |
A |
Satz2 |
con3 |
con32 |
con33 |
| 2.781123 |
2.635683 |
A |
Satz3 |
con3 |
con32 |
con33 |
| 2.642537 |
2.81284 |
B |
Set 1 |
con3 |
con32 |
con33 |
| 2.642594 |
2.813286 |
B |
Satz2 |
con3 |
con32 |
con33 |
| 2.681623 |
2.847156 |
B |
Satz3 |
con3 |
con32 |
con33 |
| 2.743496 |
3.047294 |
C |
Set 1 |
con3 |
con32 |
con33 |
| 2.743649 |
3.047436 |
C |
Satz2 |
con3 |
con32 |
con33 |
| 2.781123 |
3.075375 |
C |
Satz3 |
con3 |
con32 |
con33 |
| 2.975594 |
3.139697 |
D |
Set 1 |
con3 |
con32 |
con33 |
| 2,97593 |
3.139775 |
D |
Satz2 |
con3 |
con32 |
con33 |
| 3.011277 |
3.166229 |
D |
Satz3 |
con3 |
con32 |
con33 |
| 3.240016 |
3.047294 |
e |
Set 1 |
con3 |
con32 |
con33 |
| 3.240306 |
3.047436 |
e |
Satz2 |
con3 |
con32 |
con33 |
| 3.26574 |
3.075375 |
e |
Satz3 |
con3 |
con32 |
con33 |
| 3.341745 |
2.81284 |
F |
Set 1 |
con3 |
con32 |
con33 |
| 3.342073 |
2.813286 |
F |
Satz2 |
con3 |
con32 |
con33 |
| 3.364802 |
2.847156 |
F |
Satz3 |
con3 |
con32 |
con33 |
| 3.240016 |
2,599957 |
G |
Set 1 |
con3 |
con32 |
con33 |
| 3.240306 |
2.600801 |
G |
Satz2 |
con3 |
con32 |
con33 |
| 3.26574 |
2.635683 |
G |
Satz3 |
con3 |
con32 |
con33 |
| 2.975594 |
2.50897 |
H |
Set 1 |
con3 |
con32 |
con33 |
| 2,97593 |
2.510079 |
H |
Satz2 |
con3 |
con32 |
con33 |
| 3.011277 |
2.545856 |
H |
Satz3 |
con3 |
con32 |
con33 |
| 2.975594 |
2.81284 |
ich |
Set 1 |
con3 |
con32 |
con33 |
| 2,97593 |
2.813286 |
ich |
Satz2 |
con3 |
con32 |
con33 |
| 3.011277 |
2.847156 |
ich |
Satz3 |
con3 |
con32 |
con33 |
Betreff: Datenpunkte mit JSL verbindenWenn dem Graph Builder-Objekt ein einfaches Grafikskript hinzugefügt wird, erhalten Sie, was Sie wollen

names default to here(1);
// Create the data table
dt = New Table( "Example",
Add Rows( 27 ),
New Script(
"Source",
Data Table( "Untitled 60" ) << Split(
Split By( :Column 2 ),
Split( :Column 1 ),
Sort by Column Property
)
),
New Column( "x axis",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[2.3856, 2.3858, 2.4184, 2.2979, 2.2979, 2.3318, 2.3856, 2.3858, 2.4184,
2.5875, 2.5878, 2.6185, 2.8174, 2.8177, 2.8398, 2.9059, 2.9062, 2.9259,
2.8174, 2.8177, 2.8398, 2.5875, 2.5878, 2.6185, 2.5875, 2.5878, 2.6185]
)
),
New Column( "y axis",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[2.2608, 2.2616, 2.2919, 2.4459, 2.4463, 2.4758, 2.6498, 2.6499, 2.6742,
2.7302, 2.7302, 2.7532, 2.6498, 2.6499, 2.6742, 2.4459, 2.4463, 2.4758,
2.2608, 2.2616, 2.2919, 2.1817, 2.1827, 2.2138, 2.4459, 2.4463, 2.4758]
)
),
New Column( "label",
Character,
"Nominal",
Set Values(
{"a", "a", "a", "b", "b", "b", "c", "c", "c", "d", "d", "d", "e", "e",
"e", "f", "f", "f", "g", "g", "g", "h", "h", "h", "i", "i", "i"}
)
),
New Column( "legend",
Character,
"Nominal",
Set Values(
{"set1", "set2", "set3", "set1", "set2", "set3", "set1", "set2", "set3",
"set1", "set2", "set3", "set1", "set2", "set3", "set1", "set2", "set3",
"set1", "set2", "set3", "set1", "set2", "set3", "set1", "set2", "set3"}
)
)
);
// Draw the scatterplot
gb = dt << Graph Builder(
Size( 531, 456 ),
Show Control Panel( 0 ),
Variables( X( :x axis ), Y( :y axis ), Overlay( :legend ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"x axis",
ScaleBox,
{Format( "Best", 12 ), Min( 2.273568 ), Max( 3.00134902479339 ),
Inc( 0.1 ), Minor Ticks( 0 )}
)
)
);
// Add a simple graphics script to connect the points
Report( gb )[FrameBox( 1 )] << add graphics script(
Summarize( dt, byGroup = by( :legend ) );
colorList = {"Blue","Red","Green"};
fill pattern( [0] );
For( i = 1, i <= N Items( byGroup ), i++,
Pen Color(colorList[i]);
theRows = dt << get rows where( :legend == byGroup[i] & :Label != "i" );
// Add the first value as the last value to complete the object
theRows = theRows |/ theRows[1];
xMatrix = :x axis[theRows];
yMatrix = :y axis[theRows];
line( xMatrix, yMatrix );
);
);
Betreff: Datenpunkte mit JSL verbindenhier sind die Daten
| x-Achse | y-Achse | Etikett | Legende |
| 2.3856 | 2.2608 | A | Set 1 |
| 2.3858 | 2.2616 | A | Satz2 |
| 2.4184 | 2.2919 | A | Satz3 |
| 2.2979 | 2.4459 | B | Set 1 |
| 2.2979 | 2.4463 | B | Satz2 |
| 2.3318 | 2.4758 | B | Satz3 |
| 2.3856 | 2,6498 | C | Set 1 |
| 2.3858 | 2,6499 | C | Satz2 |
| 2.4184 | 2.6742 | C | Satz3 |
| 2,5875 | 2.7302 | D | Set 1 |
| 2,5878 | 2.7302 | D | Satz2 |
| 2,6185 | 2.7532 | D | Satz3 |
| 2,8174 | 2,6498 | e | Set 1 |
| 2,8177 | 2,6499 | e | Satz2 |
| 2,8398 | 2.6742 | e | Satz3 |
| 2.9059 | 2.4459 | F | Set 1 |
| 2.9062 | 2.4463 | F | Satz2 |
| 2.9259 | 2.4758 | F | Satz3 |
| 2,8174 | 2.2608 | G | Set 1 |
| 2,8177 | 2.2616 | G | Satz2 |
| 2,8398 | 2.2919 | G | Satz3 |
| 2,5875 | 2.1817 | H | Set 1 |
| 2,5878 | 2.1827 | H | Satz2 |
| 2,6185 | 2.2138 | H | Satz3 |
| 2,5875 | 2.4459 | ich | Set 1 |
| 2,5878 | 2.4463 | ich | Satz2 |
| 2,6185 | 2.4758 | ich | Satz3 |
Ich versuche, Datenpunkte für jeden Satz zu verbinden, schließe jedoch nicht die Gruppe „i“ (die zentralen Daten) ein. Ein Beispielschnappschuss finden Sie unten

Vielen Dank im Voraus für Ihre Hilfe.
Betreff: Datenpunkte mit JSL verbindenKönnen Sie bitte die Daten angeben, aus denen Sie die Diagramme erstellen?
Betreff: Datenpunkte mit JSL verbindenVielen Dank für Ihre Eingabe, aber ich konnte nicht herausfinden, wonach ich gesucht habe. Ich sehe eine andere Linienfunktion und sie zeigt alles für eine bestimmte Koordinate. Meine Frage war eher, wie man diese Koordinaten [Rahmen und nicht Daten (x,y)] für einen bestimmten Datenpunkt im Diagramm findet. Ich konnte mit dem Graph Builder eine Verbindung herstellen, aber dann wurden auch die zentralen Datenpunkte verbunden, die ich nicht möchte. Wenn ich ausschließe, werden die Datenpunkte nicht angezeigt, die ich auch nicht möchte. Ich kann immer noch den ersten Satz von Datenpunkten replizieren, um die Raute zu schließen, weiß dann aber nicht, wie ich die Datenpunkte immer noch in der Mitte anzeigen, sie aber nicht verbinden kann. Vielen Dank.

Betreff: Datenpunkte mit JSL verbindenSehen Sie sich zunächst „Hilfe“ > „Skriptindex“ an und suchen Sie nach der Funktion „Line()“. Gehen Sie dann zu Hilfe > JMP-Dokumentationsbibliothek > Skripthandbuch und suchen Sie erneut danach, um eine detailliertere Erklärung und weitere Beispiele zu erhalten.