BookmarkSubscribeRSS Feed
viveklsvivek
Calcite | Level 5

Hi

I am trying to do a box plot with the PROC BOXPLOT but I see an error.

the code I am trying to write is

proc boxplot data=ect_2014.dosering;

plot ( frekvenssista  pulsbreddSista)*Sjukhus_Gruppnamn;

run;

I reveice this error

275

276  proc boxplot data=ect_2014.dosering;

ERROR: Procedure BOXPLOT not found.

277     plot ( frekvenssista  pulsbreddSista)*Sjukhus_Gruppnamn;

278  run;

Please help me of what to correct in this?

/vivek

3 REPLIES 3
Cynthia_sas
Diamond | Level 26

Hi:

  This error indicates that PROC BOXPLOT is not included in your installation, probably because SAS/GRAPH is either not included with your installation or not installed. You would need to check with your system administrator to see whether you have SAS/GRAPH available to use.

         

  It is also possible to create boxplots using ODS GRAPHICS, which is part of Base SAS. You would use the SGPLOT procedure with either the HBOX or the VBOX statement. Here is an example from the documentation.

     

Cynthia

   

proc sgplot data=sashelp.heart;

  title "Cholesterol Distribution by Weight Class";

  hbox cholesterol / category=weight_status;

run;

title;

 

proc sgplot data=sashelp.heart;

  title "Cholesterol Distribution by Weight Class";

  vbox cholesterol / category=weight_status;

run;

title;

viveklsvivek
Calcite | Level 5

Hi thank you Cynthia.,

However I Think both give a different format of output.

Please see the attachment , or may be I am missing on something here.,

I just need the box plot with mean and median and not the other values.

SGPlot.pngbox.png

I need a plot which shows only the mean and median(right plot), and how can I do it. ?

Cynthia_sas
Diamond | Level 26


Hi,

If you look in the documentation, you will see that there are control options for the markers and much, much else. Here's the link to the doc

SAS(R) 9.3 ODS Graphics: Procedures Guide, Third Edition

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1893 views
  • 3 likes
  • 2 in conversation