05-29-2013 10:22 PM
I've been trying to get UNIVARIATE to create a histogram with two vertical references lines of two different colors. I seem to be able to specify the location of two reference lines, with no problem...but can't seem to get two different colors to be used for the two lines individually. I was basing my attempts on the enhancements listed here:
Under Univariate, before 'What's Changed' it says CHREF will accommodate a list. I've tried listing several different colors, but i always get errors. Here's a simple data step to create a file, and the UNIVARIATE code i have been editing. Both lines plot with no problems, but they're always either one color, or i get an error in the log. Any help is appreciated, though i'm thinking i need to either go GPLOT or ANNOTATE (which i don't mind doing, but also don't want to do if there's an easier way as mentioned by the enhancements).
input Expert Customer;
proc univariate data=octane;
/href=89 91 chref=red green;