BookmarkSubscribeRSS Feed
MeredithG
Calcite | Level 5

It seems like my COLAXIS statement is being ignored:

proc sgpanel data=long noautolegend;

     panelby group time/onepanel novarname sparse columns=2 rows=3 ;

     vbar dose;

     colaxis values=(0 to 120 by 30);

run;

I get an x-axis with a bunch of unreadable cluttered dose numbers.

4 REPLIES 4
PGStats
Opal | Level 21

I think that vbar implies a discrete X axis. Try FITPOLICY=THIN in your rowaxis statement.

PG

PG
MeredithG
Calcite | Level 5

I have, it doesn't make them thin enough to be readable. I may just make a new ordinal variable and use that instead.

Edit: I'm going to use a DENSITY plot. I have a bunch of other panels with discrete axes and I wanted them to look uniform, but it's not right for this variable.
Thank you!

PGStats
Opal | Level 21

If dose is a continuous variable, taking all sorts of values, then perhaps histograms would be preferable to vbar graphs. - PG

PG
DanH_sas
SAS Super FREQ

or NEEDLE plots.

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
  • 4 replies
  • 1383 views
  • 0 likes
  • 3 in conversation