The template is long, and it is hard to scroll through the log to discover which colors are associated with each attribute. ![]() The following statements display the contents of the Statistical template to the SAS log: If you display the template for the styles.HTMLBlue template, you will see that the HTMLBlue style inherits from the Statistical style, and it is the Statistical style that defines the contrast colors. In the style template, the GraphData n:ContrastColor attributes are set by using keywords named gcdata1, gcdata2, gcdata3, etc. You can use the SOURCE statement in PROC TEMPLATE to display a template. These are the colors in the previous scatter plot. The complete list of style elements and attributes for ODS graphics is in the documentation, but for this article, the important fact is that the GraphData n:ContrastColor attribute determines the marker color for the nth group. Use ODS style elements to set marker colors.Ī style defines elements called GraphDataDefault, GraphData1, GraphData2, GraphData3, and so forth.Įach element contains several attributes such as colors and line patterns. What colors does PROC SGPLOT uses for groups? #SASTip Click To Tweet Colors come from stylesĬolors are defined by styles, and you can ![]() So what colors are these? What are their RGB values? Notice that these marker colors are not fully saturated colors, so they are not the SAS color names RED, BLUE, GREEN, BROWN, and MAGENTA. Scatter x= x y=y / group=Color markerattrs= (size= 24 symbol=SquareFilled ) Title "Marker Colors Used for GROUP= Option"
0 Comments
Leave a Reply. |