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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 1462 views
  • 10 likes
  • 1 in conversation