Would someone please demonstrate (or point to a sample program) for the use of blockindex with a blockplot graph? My blockplot code is working but I need to associate specific, unchanging colors with my three blockplot values. Usually I can find sample code for most SAS features but I am coming up empty with this one. I know I need the filltype and blockindex options on my blockplot statement but I don't know how to create the color index. I would appreciate any help. Thanks!
Cheryl
[SAS 9.4 TS Level 1M3 on Win32_7PRO platform]
You can use BLOCKINDEX=column option where the column contains the index numbers 1-12 that indicate which of the style group elements are used for each block. FILLTYPE should be Multicolor.
You can use BLOCKINDEX=column option where the column contains the index numbers 1-12 that indicate which of the style group elements are used for each block. FILLTYPE should be Multicolor.
Thanks for your reply. If I understand you correctly, I only need to add a new numeric column (1,2,3) to my data table then put the name of that column equal to BLOCKINDEX. The number should match the color of the style group element I want to use for each value. Is that correct?
No wonder I couldn't find a code example! I will give this a try and report back.
Thank you Sanjay. Your explanation helped me understand what I needed to do.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.