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

GhostHalloweenCard.png

 

A quick SAS ODS Graphics ellipseparm plot take on a neat greeting card. Happy Halloween, all!

 

* Fun With SAS ODS Graphics: 5-Ellipse Ghost
  ODS Graphics take on neat Ghost Halloween Card at bethschristmas.com/products/ghost-halloween-card;
  
data ghost;                                                                                                     * Generate a "dummy" point for scatter chart to facilitate ellipse plotting;  
retain x y 0;                            

ods graphics / noborder antialias height=8.68in width=6.64in;                                                   * Set image size;
proc sgplot data=ghost noautolegend noborder;                                                                   * Creat ghost chart (Ellipseparm plots);                                  
styleattrs backcolor=orange;                                                                                    * Orange padding;
scatter x=x y=y / markerattrs=(size=0pt);                                                                       * Need another plot type with ellipseparm plots; 
ellipseparm semimajor=36 semiminor=53 / slope=0 xorigin=-59 nooutline yorigin=198 fill fillattrs=(color=black); * Left eye;
ellipseparm semimajor=18 semiminor=29 / slope=0 xorigin=-59 nooutline yorigin=160 fill fillattrs=(color=white);
ellipseparm semimajor=36 semiminor=53 / slope=0 xorigin=59 nooutline yorigin=198 fill fillattrs=(color=black);  * Right eye;
ellipseparm semimajor=18 semiminor=29 / slope=0 xorigin=59 nooutline yorigin=160 fill fillattrs=(color=white);
ellipseparm semimajor=40 semiminor=68 / slope=0 xorigin=0 nooutline yorigin=31 fill fillattrs=(color=black);    * Mouth;
inset "HAPPY HALLOWEEN!" / textattrs=(color=orange size=28pt weight=bold) position=bottom;                      * We wish you a Happy Halloween!;
xaxis display=none offsetmin=0 offsetmax=0 values=(-332 332);                                                   * Suppress axes, set axes bounds;
yaxis display=none offsetmin=0 offsetmax=0 values=(-434 434);                          
run;

 

The ModelThe Model

 

Work-in-Progress WireframeWork-in-Progress Wireframe

2 REPLIES 2

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
  • 2 replies
  • 1196 views
  • 7 likes
  • 2 in conversation