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

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


pageviews.png
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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

2 REPLIES 2
PGStats
Opal | Level 21

Use yaxis tickvalueformat=best20.;   - PG

PG
ballardw
Super User

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) ;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1118 views
  • 7 likes
  • 3 in conversation