rug | Create annotations for a rug plot along an axis | rug |
The RUG macro creates an annotate data set to draw 'rug lines' along an axis in a plot indicating the univariate distribution of a variable.
The RUG macro is defined with keyword parameters. The arguments may be listed within parentheses in any order, separated by commas. For example:
%rug(data=foo, var=X1, at=0.05, out=rug1); proc gplot data=foo; plot Y * X1 / anno=rug1 ... ;
DATA=_LAST_
]
BY=
variable
BY=
ON=X
]
AT=0.5
]
HT=2
]
Color(s)
of rug lines. A different color is used for each
level of the CLASS=
variable. [Default: COLOR=BLACK BLUE RED GREEN
]
VAR=
values. This is
useful when the VAR=
values are discrete, and would otherwise
overplot. [Default: JITTER=0
]
IN=
data set is concatenated with the
OUT=
data set.
OUT=_RUG_
]
%include macros(rug); *-- or include in an autocall library; %rug();