BookmarkSubscribeRSS Feed
tc
Lapis Lazuli | Level 10 tc
Lapis Lazuli | Level 10

momwow.png

 

A quick SAS ODS Graphics text/scatter plot take on those MOM-WOW cards. Happy Mother's Day, all!

 

* Fun With SAS ODS Graphics: MOM-WOW Mother's Day Card
  Mother icon by DewDrops on @NounProject thenounproject.com/term/mother/851501
  Mother's Day color palette from codeofcolors.com/mothers-day-colors.html;

data mom;                                                                                           * Generate points and text for card;
retain x y 0 text 'MOM' x2 0 y2 .87;                                                                * Text to display and x/y points;
                                                                                                    * x,y="MOM" x2,y2=Mother icon;
ods graphics / reset height=5in width=5in antialias;                                                * 5"x5" image (good enough for Twitter!);
proc sgplot data=mom aspect=1 noborder noautolegend nowall;                                         * Generate MOM-WOW Mother's Day card (text/scatter plots);
styleattrs backcolor=cxFEE8DA;                                                                      * Specify background fill color;
symbolimage name=mom image='/folders/myfolders/motherchild.png';                                    * Mother icon; 
scatter x=x2 y=y2 / markerattrs=(symbol=mom size=34pt);                                             * Scatter plot w/mother icon marer; 
text x=x y=y text=text / textattrs=(color=cxE25B6A size=108pt weight=bold) position=top contributeoffsets=none; * MOM; 
refline 0 / axis=y lineattrs=(color=cx651B0E thickness=3pt);                                        * Line separator at 0;
text x=x y=y text=text / textattrs=(color=cxFFAEAA size=108pt weight=bold) rotate=180 position=top contributeoffsets=none; * WOW (MOM "reflection"); 
inset " HAPPY MOTHER'S DAY " / position=bottom textattrs=(color=cx651B0E size=22pt weight=bold);    * HAPPY MOTHER'S DAY;
xaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;                                            * Specify x/y axes ranges, hide axes;
yaxis display=none min=-1 max=1 offsetmin=0 offsetmax=0;

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 0 replies
  • 1831 views
  • 10 likes
  • 1 in conversation