BookmarkSubscribeRSS Feed
RKC
Calcite | Level 5 RKC
Calcite | Level 5

 

 

 

Hi ,

 

I am trying to create spiderplot. by Mono and combo treatment groups. I am able to get spider legs either solid line or dashed lines, But I want mono trt group with dashed lines and combo with solid lines. Please suggest if any options to get this. Thanks.

I have attached plot image

 

Code I use:

proc sgplot data=chg   ;
     styleattrs datacontrastcolors=(&colors.) ;
     refline 0 / lineattrs=(pattern=shortdash);
     refline -25 / lineattrs=(pattern=shortdash);
     refline 25 / lineattrs=(pattern=shortdash);
     series x=xvar y=yvar / group=subjid grouplc=&bytype. groupmc=&bytype.
                markers markerattrs=(symbol=circlefilled )
               lineattrs=(thickness=2 pattern=solid) name='a';
     keylegend 'a' / title="&leglabel." type=linecolor valueattrs=(size=7)
               location=inside position=topright sortorder=ascending across=1 opaque;

     xaxis label='Study day';
     yaxis label='Percentage change from baseline (%)';

1 REPLY 1
PeterClemmensen
Super User

Use ATTRPRIORITY=NONE in the ODS GRAPHICS options like this

 

ods graphics / attrpriority=none;
proc sgplot data=sashelp.stocks;
    where stock ne "IBM";
    series x=date y=close / group=stock;
run;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 949 views
  • 0 likes
  • 2 in conversation