Procedure features: |
HISTOGRAM statement |
DENSITY statement |
KEYLEGEND statement |
|
Sample library
member: |
GSGPLHST
|
This
example shows a histogram combined with two density plots. One
density plot uses a normal density estimate and the other density plot uses
a kernel density estimate.
|
proc sgplot data=sashelp.heart;
title "Cholesterol Distribution";
histogram cholesterol; |
|
density cholesterol;
density cholesterol / type=kernel; |
|
keylegend / location=inside position=topright;
run; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.