Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RettWeber
Fluorite | Level 6

Hello,

 

 

Using Sgplot is it possible to have different setting for the outline of markers than the fill of markers? Also how does one control the line thickness of markers? For instance using a circle with blue circle outline and pale blue inside with pale blue transparency set to 50% and circle thickness set to 5 pixels. This would be used in a scatterplot if that matters. 

 

Second question, is there any issue with using both an x and y error bar simultaneously on a scatterplot. 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

This will get you started

 

proc sgplot data=sashelp.class;
scatter x=age y=weight / filledoutlinedmarkers transparency=.5
   markerfillattrs=(color=lightblue) 
   markeroutlineattrs=(color=darkblue thickness=2)
   markerattrs=(symbol=circlefilled size=25px );
run;

I changed the size to 25px instead of 5. You can change it according to your needs 

RettWeber
Fluorite | Level 6

Thank you, that answers the question and the setup for the markers. For some reason I could not find the markeroutlineattrs and markerfillattrs in the documentation.

 

Perhaps I did not know where to look.

 

I assume that I can use those in an attribute table so that I can create different attributes for different groups. I plan on making several figures using grouping. 

 

Thanks again!

 

Rett

 

PeterClemmensen
Tourmaline | Level 20

Yes, you can use them in an attribute map as well 🙂

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1868 views
  • 1 like
  • 2 in conversation