Data visualization with SAS programming

Title and Footer statements make box plot smaller

Reply
Contributor
Posts: 39

Title and Footer statements make box plot smaller

Hello everyone,

first off thank you for looking into this topic and for trying to help me. I am in the process generating a few reports. Those reports consist of a proc print that creates tables and a proc boxplot that is supposed to generate a boxplot. Everything is saved into the one PDF. My problem is:

When I add footnotes and titles to the proc boxplot, the size of the box plot diagram shrinks exponentially, inspite of lots of white space below the box plot. Why can't the title and footnote statements just use up the white space above/below the box plot?

I attached the code for the proc boxplot statement and the template that goes with it. Thank you for your help!

Attachment
Attachment
Grand Advisor
Posts: 9,748

Re: Title and Footer statements make box plot smaller

Try NOGTITLE and NOGFOOTNOTE options on the ODS PDF statement. Default of GTITLE makes titles part of the graphic displays usually resulting in reduced space for the plots.

Contributor
Posts: 39

Re: Title and Footer statements make box plot smaller

Hi ballardw, thank you for your response. Using the NOGFOOTNOTE and NOGTITLE options didn't change anything Smiley Sad

SAS Super FREQ
Posts: 1,044

Re: Title and Footer statements make box plot smaller

Your best bet would be to submit a problem report to Tech Support using the link in the bottom page footer.

Or, attach the FULL WORKING program, with data and output to this thread, and we can try debugging it.

Grand Advisor
Posts: 9,748

Re: Title and Footer statements make box plot smaller

Maybe try options on the ODS GRAPHICS statement. You can set explicit height/width for graph sizes and Scale/noscale to allow/prevent text, such as titles and footnotes to change with the resized graph. 

Contributor
Posts: 39

Re: Title and Footer statements make box plot smaller

@Sanjay Thank you for your response. Submitting the data is not an option.

@ballardw I ended up replacing the PROC BOXPLOT with PROC GPLOT. I no longer have to specify a graphics dump using PROC GPLOT. However, I ran into another problem using #byval(var) in the title statement ()

Thanks for everyone's help.

SAS Super FREQ
Posts: 3,234

Re: Title and Footer statements make box plot smaller

You don't have to submit real (proprietary) data. Submit fake data that demonstrates the problem.

SAS Super FREQ
Posts: 1,044

Re: Title and Footer statements make box plot smaller

As a general note for future queries, it is much easier for other people who are not familir with your project to help you if you include a (smaller or reduced) working program with fake or simulated data that will demnostrate the problem. 

Post a Question
Discussion Stats
  • 7 replies
  • 377 views
  • 0 likes
  • 4 in conversation