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