BookmarkSubscribeRSS Feed
Sarah-R
Obsidian | Level 7

Hi. 

 

I have two programs that create two different graphs.  How do I get the two of them to match in the color schema each one has?  Currently, they do not match in color schema, and have two different color palates that each one uses.  

 

I tried using proc template; define style statement; with ods pdf file= style=; statement, but when I use the same for these, it does not produce similar results in terms of having similar colors between the two graphs.  

 

Thank you in advanced for whatever help me you may offer me. 

 

 

2 REPLIES 2
djrisks
Barite | Level 11

Hi @Sarah-R,

 

Assuming you have the same groups in the two graphs then you can use attribute maps to make the groups have consistent attributes, i.e. colors and shapes.

 

An example on how to use attribute maps can be seen here:

 

https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Map-It-Out-Using-SG-Attribute-Maps-for-P...

 

 

GraphGuy
Meteorite | Level 14

Which Procs are you using to create the graphs?

 

Can you post some of your code?

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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