Data visualization with SAS programming

gplot filling an area above a line

Reply
N/A
Posts: 0

gplot filling an area above a line

Can I fill an area above a line in an gplot? Everything I see in the manual shows filling the area below the line
SAS Super FREQ
Posts: 864

Re: gplot filling an area above a line

Yes, you can. The trick is ask for two areas and set the first color to be the same as the background. Here is an example:

pattern1 c=white;
pattern2 c=blue;
symbol i=join;

proc gplot data=sashelp.class;
plot height*name / areas=2;
run;
Post a Question
Discussion Stats
  • 1 reply
  • 90 views
  • 0 likes
  • 2 in conversation