1. Use the FILLATTRS and ALTFILLATTRS options to reverse the color assignments in that case.
2. Use FILLTYPE=MULTICOLOR to switch to multicolor mode, and use the DATACOLORS option on the STYLEATTRS statement to control the colors.
Hope the helps!
Dan
As in the MWE, I am plotting these series with the BY statement. I need to reverse not all but only the problematic results.
It seems I need MULTICOLOR anyway to respectively assign specific colors to specific values.
If you want to assign specific colors to specific BLOCK values, use an ATTRIBUTES MAP with the FILLTYPE=MULTICOLOR setting. That way, the correct colors will be used regardless of data order.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.