Voglio tracciare il tipo di linea differente con la condizione che SN == "R06CAD00B0 (GOLD)

Il secondo grafico ha funzionato? Non ho accesso a JMP 11, quindi non posso testarlo. Ci saranno differenze significative in Graph Builder da JMP 11 a JMP 14.
txnelson, io grafico grafico con il tuo primo script, ma la linea tratteggiata è SN "12", la sceneggiatura non funziona. A proposito, la mia versione JMP è 11.
Ecco due script di esempio che illustrano come è possibile utilizzare l'impostazione Proprietà per modificare lo stile della linea per un valore specifico di SN. Il primo mostra che la posizione non deve essere specificata per ottenere il corretto funzionamento del codice. Il secondo mostra che se si desidera supportare la posizione, è possibile determinare quale deve essere la posizione, quindi inserirla nel codice.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Change the age column to be character and change it's name to SN,
// to mimic the SN in the graph from the first entry for the discussion
dt:age << data type( character ) << set name( "SN" );
// Change the value of the age=15 to age=15(Gold)
For Each Row( If( dt:SN == "14", dt:SN = "14(Gold)" ) );
// Create the code for the graph. Note,
theGraph = Expr(
Graph Builder(
Variables( X( :sex ), Y( :height ), Overlay( :SN ) ),
Elements( Line( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
9,
Properties( 0, {Line Style( "Dashed" )}, Item ID( "14(Gold)", 1 ) )
)}
)
)
);
);
// Run the graph with all of the data
theGraph;
// Create a new table with no age 12 individuals, so the position of 15(Gold)
// changes in the graph
dt << select where( :SN != "12" );
dtNo12 = dt << subset( selected rows( 1 ), selected columns( 0 ) );
// Run the graph with the no 12 data
theGraph;
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Change the age column to be character and change it's name to SN,
// to mimic the SN in the graph from the first entry for the discussion
dt:age << data type( character ) << set name( "SN" );
// Change the value of the age=15 to age=15(Gold)
For Each Row( If( dt:SN == "14", dt:SN = "14(Gold)" ) );
// Create the code for the graph. Note,
theGraph = Expr(
// Find the position
Summarize( byGroup = by( :SN ) );
thePosition = Loc( byGroup, "14(Gold)" ) - 1;
Eval(
Substitute(
Expr(
Graph Builder(
Variables( X( :sex ), Y( :height ), Overlay( :SN ) ),
Elements( Line( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
9,
Properties( __pos__, {Line Style( "Dashed" )}, Item ID( "14(Gold)", 1 ) )
)}
)
)
)
),
Expr( __pos__ ), thePosition
)
);
);
// Run the graph with all of the data
theGraph;
// Create a new table with no age 12 individuals, so the position of 15(Gold)
// changes in the graph
dt << select where( :SN != "12" );
dtNo12 = dt << subset( selected rows( 1 ), selected columns( 0 ) );
// Run the graph with the no 12 data
theGraph;Mi dispiace, non ho reso la mia risposta molto chiara. Le istruzioni che ti ho fornito ti forniranno la sintassi specifica richiesta per apportare le modifiche suggerite. Suppongo quindi che tu debba prendere quelle informazioni e creare uno script secondo le tue specifiche che userebbe la sintassi per apportare le modifiche a tutti i grafici necessari.
No, non hai capito cosa intendevo, voglio creare uno SN speciale con linea tratteggiata in molti grafici. Lo script di copia non può farlo.
Conoscevo questo metodo, ma ho molti grafici per cambiare tipo di linea. come posso farlo attraverso la sceneggiatura.
Vai alla leggenda
Fare clic con il tasto destro sulla linea che si desidera modificare
Seleziona lo stile della linea che desideri