BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
statz
Obsidian | Level 7

Hi, 

 

I would like to output a histogram with the normal density curve and the qqplot for a given data. With the following code, I can output the histogram and qqplot, but the histogram does not have the normal density curve. The normal density curve is included if the output is in html, BUT if the output is in pdf, it is not included. Does anyone know what is missing in my code? Thank you.

 

%LET path1= C:\Desktop\output1.pdf;*/output;
ods pdf file="&path1" NOGFOOTNOTE STARTPAGE=yes pdftoc=2 contents=yes style=printer bookmarklist=hide ;
data new;
input y @@;
datalines;
23 34
24 32
23 32
22 23
24 34
25 45
26 12
27 23
28 25
23 27
24 23
24 24
;
run;
ods select histogram qqplot ;
proc univariate data=new ;
histogram y/ grid normal( mu=est sigma=est color=red w=2.5) name='histogram' vscale=proportion;
qqplot y / normal( mu=est sigma=est color=red) name='qqplot' contents="" description="";
run;

ods pdf close;

 

 

By the way, I get this error: 


ERROR: Requested function is not supported.
ERROR: Unable to process the graph.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Did you answer any of the questions Rick posed in your other post? https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/density-curve-in-histogram-not-appearing-i...

 

Since this is graphics or ods related Data management isn't the best place to post this topic. And to reduce getting partial answers in multiple threads please do not post duplicates unless requested or suggested.

View solution in original post

2 REPLIES 2
ballardw
Super User

Did you answer any of the questions Rick posed in your other post? https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/density-curve-in-histogram-not-appearing-i...

 

Since this is graphics or ods related Data management isn't the best place to post this topic. And to reduce getting partial answers in multiple threads please do not post duplicates unless requested or suggested.

statz
Obsidian | Level 7

Thanks! 🙂

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 848 views
  • 0 likes
  • 2 in conversation