![]() |
STATISTIC PLOTName:
The statistic plot yields 2 traces:
The appearance of these two traces is controlled by the first two settings of the LINES, CHARACTERS, SPIKES, BARS, and associated attribute setting commands.
<SUBSET/EXCEPT/FOR qualification> where <stat> is one of Dataplot's supported statistics; <y1> ... <yk> is a list of 1 to 3 response variables (<stat> determines how many response variables); <x> is the subsample identifier variable (this variable appears on the horizontal axis); and where the <SUBSET/EXCEPT/FOR qualification> is optional. For a list of supported statistics, enter
<SUBSET/EXCEPT/FOR qualification> where <stat> is one of Dataplot's supported statistics; <y1> ... <yk> is a list of 1 to 30 response variables; <x> is the subsample identifier variable (this variable appears on the horizontal axis); and where the <SUBSET/EXCEPT/FOR qualification> is optional. This syntax is used for multiple response variables. See the Note section below for details on this syntax. For a list of supported statistics, enter
STANDARD DEVIATION PLOT Y X1 MEAN PLOT Y1 TO Y5 X
LET NGROUP = SIZE TAGDIST
LET IGROUP TAGDIST(K) LET A = RANK CORRELATION Y1 Y2 SUBSET TAG = IGROUP LET YNEW(K) = A LET XNEW(K) = K END OF LOOP LET YNEW2 = DATA A A LET XNEW2 = DATA 1 NGROUP PLOT YNEW XNEW AND PLOT YNEW2 XNEW2 This basic idea can be easily adapted to other statistics (even ones that are not built-in to DATAPLOT). It can also be adapted to statistics requiring any arbitrary number of variables to compute.
That is, for each distinct value of X, there are now 4 means plotted instead of just one. The following commands can be used to control the appearance of the plot:
SET STATISTIC PLOT SUMMARY <VARIABLE/GROUP> If the FORMAT option is set to OVERLAY and the SUMMARY option is set to VARIABLE, this is equivalent to the following:
PRE-ERASE OFF ERASE MEAN PLOT Y1 X MEAN PLOT Y2 X MEAN PLOT Y3 X MEAN PLOT Y4 X PRE-ERASE ON That is, there will be a curve corresponding to each response variable and there will be a reference line corresponding to each variable. If the FORMAT option is set to DEX, then this plot uses a format similar to the DEX <stat> PLOT command. That is, for each distinct value of X, there will be curve connecting the mean values for the 4 response variables. If the SUMMARY option is set to GROUP, there will be a single reference curve. At each distinct value of X, a single overall mean is computed for all 4 of the response variables. In addition, the following option is added to this command:
If ZSCORE is given, then a z-score transformation (subtract the mean and then divide by the standard deviation) is computed on each response variable first. If USCORE is given, then a u-score transformation (subtract the minimum and divide by the range) is computed on each column. Note these z-score and u-score transformations apply to the entire response variable, not to each distinct group within the response variable.
2009/4: support for multiple response variables The list of supported statistics has been regulary updated since the original 1988/2 implementation. SKIP 25 READ GEAR.DAT DIAMETER BATCH . TITLE AUTOMATIC TITLE OFFSET 2 MULTIPLOT 2 2 MULTIPLOT CORNER COORDINATES 3 0 100 100 MULTIPLOT SCALE FACTOR 2 X1LABEL DISPLACEMENT 14 Y1LABEL DISPLACEMENT 12 TIC MARK LABEL SIZE 1.8 . XTIC OFFSET 1 1 X1LABEL BATCH LINE BLANK SOLID CHARACTER X BLANK Y1LABEL MEAN TITLE MEAN PLOT MEAN PLOT DIAMETER BATCH Y1LABEL STANDARD DEVIATION TITLE SD PLOT STANDARD DEVIATION PLOT DIAMETER BATCH Y1LABEL RELATIVE STANDARD DEVIATION TITLE RELSD PLOT RELSD PLOT DIAMETER BATCH Y1LABEL RANGE TITLE RANGE PLOT RANGE PLOT DIAMETER BATCH . END OF MULTIPLOT ![]() skip 25 read iris.dat y1 to y4 x . title case asis title offset 2 label case asis y1label Mean x1label Group-ID xlimits 1 3 major xtic mark number 3 minor xtic mark number 0 xtic offset 0.6 0.6 ytic offset 1 1 . set stat plot format dex set stat plot summary vari title sp()Case 1: Format = DEX, Summary = Variable line color black black black blue red green cyan mean plot y1 to y4 x . set stat plot format dex set stat plot summary group title sp()Case 2: Format = DEX, Summary = Group mean plot y1 to y4 x . set stat plot format overlay set stat plot summary group line color blue red green cyan line so so so so bl char bl bl bl bl x title sp()Case 3: Format = Overlay, Summary = Group mean plot y1 to y4 x . set stat plot format overlay set stat plot summary variable line so all char bl all line color blue red green cyan blue red green cyan title sp()Case 4: Format = Overlay, Summary = Variable mean plot y1 to y4 x ![]()
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 09/22/2011 |