You are able to this new LABELLOC= choice to put the identity in to the otherwise outside the investigation area of the graph

Resource traces with names

For individuals who may want to incorporate a tag on the resource outlines, you can utilize this new Title= option to indicate no less than one brands. I favor “outside” (the default) while the then range cannot affect the brand new term. You need to use brand new LABELPOS= choice to identify if the title was displayed over the top or base (to possess a straight site range) otherwise in the kept otherwise best (to own a horizontal reference range). The second example adds labels toward earlier analogy.

Site lines during the computed metropolitan areas

Sometimes this new resource opinions will be the result of a computation. The brand new REFLINE beliefs plus the Name= solution may come from variables in the an excellent SAS investigation set. Having several opinions, you probably need certainly to arrange the prices inside “a lot of time function.”

An example is actually displaying detailed analytics such as for example a suggest, average, and percentiles. The second name to PROC Function computes around three analytics to your Cholesterol changeable: this new median, the brand new 25th percentile, in addition to 75th percentile. New returns out-of PROC Mode is the one row and three articles, therefore i use PROC TRANSPOSE to alter the information set to the a lot of time setting, below:

You can append the data towards unique study lay and you can have fun with PROC SGPLOT to produce a histogram with regard contours you to definitely screen brand new determined percentiles.

Within example, We utilized the LINEATTRS=GRAPHDATA2 substitute for designate the style top features of new contours. I made use of the Thickness= suboption to help you override the fresh new default occurrence.

Site traces for two-D plots of land

You may put source outlines to just one or one another axes out-of a two-dimensional plot such as good scatter patch, temperatures chart, or contour plot. Next chart shows a heat map of your cholesterol levels and you can systolic blood pressure opinions for over 5,100 people. The new source outlines show health-related values having regular, slightly highest, and you may large degrees of both details:

Resource lines to possess a distinct axis

It’s also possible to screen source contours to the a discrete axis, though it isn’t prominent. You to definitely app which i can consider was exhibiting an expected worthy of to own a distinct probability delivery. Several other software is simply attracting a line that separates you to set out-of groups of other. In the after the analogy, I personally use a research line to suggest a financial year. Notice the adopting the:

  • Whether your categorical changeable possess a layout, you need to indicate this new formatted well worth.
  • By default, the resource range are typically in the middle of the class. You can utilize the brand new DISCRETEOFFSET= solution and you will a regard on interval [-0.5, 0.5] to maneuver this new line remaining otherwise best from cardio. Confident opinions flow new range off to the right; bad viewpoints flow new line left. Regarding the example, DISCRETEOFFSET=0.5 motions this new range between the reference group and its next-door neighbor on the right.
  • The REFLINE statement helps good SPLITCHAR= solution that you can use to-break an extended identity round the multiple traces.

Getting like with regard lines

Because you can manage the newest density of your own resource lines, they are utilized for some objectives. Sanjay Matange shows one or two imaginative ways to use reference lines to possess an effective discrete axis:

  • Explore reference contours to high light a category of interest.
  • Whilst you can use the brand new COLORBANDS= solution into YAXIS statement to add changing groups of colours to help you a chart, the fresh REFLINE report allows you to incorporate outlines that aren’t purely changing or you to definitely will vary in width.


This information shows numerous ways to use new REFLINE report inside PROC SGPLOT to add information into the graphs. You could display a column to suggest a resource really worth otherwise an example figure. You could potentially display brands for site outlines. You may use resource lines getting a great categorical adjustable to the a distinct axis. Resource outlines is actually a powerful way to increase graphs.