- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 06-19-2022 05:33 AM
(603 views)
Hi guys, I'm looking for a way to change the color of the bar outline. The bar I made contains two cate variables and thereby I use group=statement making group cluster. I change the fill to dark gray and light gray for each group but the bar outline is still the default blue and red.
Is there a way that I can match the color of the bar and its outline? or any way to make the outline invisible?
Below is my current codes:
proc sgplot data=l10 ;
format CURSMOKE CURSMOKE. educ educ.;
styleattrs datacolors=(grol grg);
vbar educ / group=CURSMOKE filltype=solid clusterwidth=0.5 groupdisplay=cluster;
yaxis label='Number of Patients' labelattrs=(size=12);
xaxis label='Attained Education' labelattrs=(size=12);
RUN;
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try 'nooutline' option:
vbar educ / group=CURSMOKE filltype=solid clusterwidth=0.5 groupdisplay=cluster nooutline ;
vbar educ / group=CURSMOKE filltype=solid clusterwidth=0.5 groupdisplay=cluster nooutline ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! It works