BookmarkSubscribeRSS Feed
shweta_d_singh
Fluorite | Level 6

Hi Everyone,

 

I am trying to create below graph 

where I have to show different pattern : If the subject has positive or negative values in variable VAR1.

and show different color : If a subject has different values in variable VAR2.

I have tried using some default PROC TEMPLATE "style" present but it works only for a particular group .

Could some please suggest me a solution for this.

 
 

thank you in advance.

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

I suggest you give us an example of what you want to achieve using one of the SASHELP tables, like AIR or CLASS. This way we can reuse your code and modify it as needed.

Also, post images as images. No one wants to download MS Word documents.

shweta_d_singh
Fluorite | Level 6

Hi @ChrisNZ ,
for example if I consider dataset BASEBALL from SASHELP where NAME should be on x-axis and NHITS will be displayed on y-axis and different TEAM displayed with different color and different LEAGUE with different patter. while team and league will also be displayed in legend.

 

Capture.JPG

 

ods rtf file="path xyz" style=Journal2 nogtitle nogfootnote;

 

I have used Journal2 and expecting help for other steps. 

 

 

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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