Dear all.
I created the plot in the attachement, using Vbox in SGPLOT.
I would like to include the frequencies for each point of NACCFDYSYear somewhere in the plot.
The XAXISTABLE statement cannot produce frequencies with box plots.
Any suggestions?
Thanks
You want this ?
proc sql;
create table have as
select sex,status,weight,count(*) as count,max(weight)+.05*range(weight) as y
from sashelp.heart
group by sex,status;
quit;
data have ;
set have;
by sex status;
if not first.status then call missing(count,y);
run;
proc sgplot data=have;
vbox weight/category=sex group=status groupdisplay=cluster connect=median;
scatter x=sex y=y/group=status markerchar=count groupdisplay=cluster labelstrip clusterwidth=0.7;
run;
Show us your code 🙂
Code attached
You want this ?
proc sql;
create table have as
select sex,status,weight,count(*) as count,max(weight)+.05*range(weight) as y
from sashelp.heart
group by sex,status;
quit;
data have ;
set have;
by sex status;
if not first.status then call missing(count,y);
run;
proc sgplot data=have;
vbox weight/category=sex group=status groupdisplay=cluster connect=median;
scatter x=sex y=y/group=status markerchar=count groupdisplay=cluster labelstrip clusterwidth=0.7;
run;
Thanks Ksharp
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.