Quiero trazar el tipo de línea diferente con la condición que SN == “R06CAD00B0 (ORO)

¿Funcionó el segundo gráfico? No tengo acceso a JMP 11, así que no puedo probarlo. Habrá diferencias significativas en Graph Builder desde JMP 11 a JMP 14.
txnelson, trazo un gráfico con tu primer script, pero la línea de puntos es SN "12", el script no funciona. Por cierto, mi versión JMP es 11.
Aquí hay dos scripts de muestra que ilustran cómo puede usar la configuración de Propiedades para cambiar el estilo de línea para un valor específico de SN. La primera muestra que no es necesario especificar la posición para que el código se ejecute correctamente. El segundo muestra que si desea respaldar la posición, puede determinar cuál debe ser la posición y luego insertarla en el código.
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;Lo siento, no dejé muy clara mi respuesta. Las instrucciones que le di le proporcionarán la sintaxis específica requerida para realizar el cambio sugerido. Entonces asumo que tomaría esa información, y construiría un script a sus especificaciones que usaría la sintaxis para hacer los cambios a todos los gráficos necesarios.
No, no entendiste lo que quería decir, quiero hacer un SN especial con una línea de puntos en muchos gráficos. Copiar script no puede hacerlo.
Conocí este método, pero tengo muchos gráficos para cambiar el tipo de línea. ¿Cómo puedo hacerlo a través del script?
Ir a la leyenda
Haga clic derecho en la línea que desea cambiar
Seleccione el estilo de línea que desea