Data visualization with SAS programming

Plotting large values in SGPLOT

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 102
Accepted Solution

Plotting large values in SGPLOT

Hi All,

I want to plot large data valus on the yaxis (100,000,000 to 900,000,000). SGPLOT displays them as 2E8 - 8E8. How do I get it to display the actual value? I have tried applying a format (BEST12.0) and I have used the discrete option. The discrete option is OK, but I would prefer that the values displayed as (100,000,000 to 900,000,000 by 10,000,000). How do I do this?

Thanks!

Sarah

Attachment

Accepted Solutions
Solution
‎05-30-2014 01:52 PM
Grand Advisor
Posts: 9,699

Re: Plotting large values in SGPLOT

If you want the commas then format the variable with the format you want to show by default.

Format youryvariablename  comma13.;

and to control the actual values used for the tick values such as

yaxis  values= (100000000 to 900000000 by 100000000) ;

View solution in original post


All Replies
Respected Advisor
Posts: 4,606

Re: Plotting large values in SGPLOT

Use yaxis tickvalueformat=best20.;   - PG

PG
Solution
‎05-30-2014 01:52 PM
Grand Advisor
Posts: 9,699

Re: Plotting large values in SGPLOT

If you want the commas then format the variable with the format you want to show by default.

Format youryvariablename  comma13.;

and to control the actual values used for the tick values such as

yaxis  values= (100000000 to 900000000 by 100000000) ;

Post a Question
Discussion Stats
  • 2 replies
  • 356 views
  • 7 likes
  • 3 in conversation