Tag: GPLOT

Add shade to Kaplan Meier plot

data km;  seed=12345;  do loc=1 to 2;    do time=2 to 22 by 1+int(4*ranuni(seed));      status=int(2*ranuni(seed));      output;    end;  end;run;proc lifetest data=km plots=s outsurv=os;…

Make contents in legend in ASCENDING order

Include the GROUPORDER=ASCENDING option in the VBARPARM statements.  For example:vbarparm category=subject response=&var /       group=&group datalabel=&byvar dataskin=pressed datalabelattrs=(size=6 weight=bold…

A beginner’s tutorial on … line plots

Do you know (right off the top of your head) the simple SAS/GRAPH code you would use to create line graphs? … If not, then this tutorial is for you! A line plot is basically a scatter plot where the markers are connected. A line plot should only be u…

A beginner’s tutorial on … scatter plots

Scatter plots are probably the simplest kind of graph, and provide a great way to visually look for relationships between two variables.  But, do you know (right off the top of your head) the simple SAS/GRAPH code you would use to create them? … Thi…

Talking Turkey with SAS Graphs

Have you heard the expression “Talk Turkey”? Well then, what better (tongue-in-cheek) thing to do around the Thanksgiving holiday, than talk some turkey using SAS Graphs! 😉 I don’t usually decorate my graphs with images and pictures (they typically ma…