Add this before your SGPLOT statement. You'll likely have to reformat it then.
ods output sgplot=want;
Found via this blog post.
Here's some instructions and explanations on how to capture output that is shown. https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods-output-statement/
@rclivornese wrote:
Is there a way to get the stats used in vbox into a sas dataset for later usage?
This example was posted a few years ago, but it only shows how to get the statistics into the plot.
proc sgplot data=want; label weight_n='N' weight_min='MIN' weight_max='MAX' weight_median='MEDIAN' weight_mean='MAEAN'; vbox weight/category=sex group=sex; xaxistable weight_n weight_min weight_max weight_median weight_mean / x=sex colorgroup=sex location=inside;
Thanks!
... View more