Data visualization with SAS programming

Specify the pattern of groups in PROC SGPLOT

Reply
Occasional Contributor
Posts: 19

Specify the pattern of groups in PROC SGPLOT

I would like to specify different patterns for different groups when drawing timeseries using PROC SGPLOT. I can specify the colours but not the patterns. I have tried the following codes:

proc sgplot data=portfolios; 
	styleattrs datalinepatterns=(dash solid longdash dot) 
	datacontrastcolors=(red blue orange black green)
	datasymbols=(circlefilled trianglefilled squarefilled dot);
	where decile in (1,5,10);
	series x=date y=dollar/group=decile;

	xaxis interval=year label="Year" min='01Jan1993'd;
run;
SAS Super FREQ
Posts: 196

Re: Specify the pattern of groups in PROC SGPLOT

try:

ods graphics on / attrpriority=none;

Ask a Question
Discussion stats
  • 1 reply
  • 105 views
  • 0 likes
  • 2 in conversation