Hi All,
I want to add P-value in the boxplot (in the rectangle) as shown below, add idea?? I use sgplot, here is my code
ods html;
proc sgplot data=change_t;
vbox col1 / category = _name_ group = group
lineattrs=(pattern=solid) whiskerattrs=(pattern=solid);
xaxis display=(nolabel) type = discrete ;
yaxis grid;
keylegend / location = inside position = topright across = 2;
run;
ods html close;
Thanks,
Chen
What version of SAS are you using?
Hi,
I am using SAS 9.4
Thanks,
Chen
Assuming you have these p-values in another dataset, you can match-merge them into the original data and use an XAXISTABLE to display them, either inside the axis area or below the axis (your rectangle area). Take a look at that approach and see if that gives you what you want.
Thanks!
Dan
There are many examples on Graphically Speaking:
http://blogs.sas.com/content/graphicallyspeaking/2016/07/17/graph-table-with-class/
Thanks, it really helps!!
Chen
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.