I have groups of measurement that I want to plot "together".
The individual measurement curves of a group should have the same color and be semi-transparent.
For each group there should be an additional smoother curve with the same color.
Is this possible in Jmp? - without "workarounds"?
version 1:
- measurements of one groups have same color
- one curve per measurement
- transparency works
- 1 smoother line instead of 3
- the smoother curve doesn't have the "right" color [consequential error]
version 2:
- measurements of one groups have same color
- nasty jumps back for the individual curves
- transparency works
- each group has it's own smoother curve
- smoother curves have has the wrong color
dt =Open( "$SAMPLE_DATA/Functional Data/Weekly Weather Data.jmp" );
dt << New Column( "group",Character,"Nominal",Formula( Substr( :STATION, 8, 1 ) ));
//version 1
dt << Graph Builder(
Variables(
X( :DATE ),
Y( :TAVG ),
Overlay( :STATION ),
Color( :group )
),
Elements(
Line( X, Y, Legend( 31 ) ),
Smoother( X, Y, Overlay( 0 ), Legend( 32 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
31,
Properties( 0, {Transparency( 0.2 )}, Item ID( "2", 1 ) ),
Properties( 1, {Transparency( 0.2 )}, Item ID( "3", 1 ) ),
Properties( 2, {Transparency( 0.2 )}, Item ID( "4", 1 ) )
)}
)
)
);
//version 2
dt << Graph Builder(
Variables( X( :DATE ), Y( :TAVG ), Overlay( :group ), Color( :group ) ),
Elements(
Line( X, Y, Legend( 31 ), Row order( 1 ) ),
Smoother( X, Y, Legend( 32 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
31,
Properties( 0, {Transparency( 0.2 )}, Item ID( "2", 1 ) ),
Properties( 1, {Transparency( 0.2 )}, Item ID( "3", 1 ) ),
Properties( 2, {Transparency( 0.2 )}, Item ID( "4", 1 ) )
)}
)
)
)