I am using log axis along with GPLOT by using axis statement options logbase=10 logstyle=expand. I would like to control the Y scale displayed as 1 10 100 1000 10000. I am trying to use order=(1 10 100 1000 10000) , but this is generating multiple warnings like below
WARNING: The intervals on the axis labeled "Analysis Value" are not evenly spaced.
WARNING: No minor tick marks will be drawn because major tick increments have been specified in uneven or unordered intervals.
How can I control the scale here.
update:
order= worked.
order= worked
Are you restricted to using PROC GPLOT or is PROC SGPLOT acceptable?
GPLOT only, updating existing code
@Snehal wrote:
I am using log axis along with GPLOT by using axis statement options logbase=10 logstyle=expand. I would like to control the Y scale displayed as 1 10 100 1000 10000. I am trying to use order=(1 10 100 1000 10000) , but this is generating multiple warnings like below
WARNING: The intervals on the axis labeled "Analysis Value" are not evenly spaced.
WARNING: No minor tick marks will be drawn because major tick increments have been specified in uneven or unordered intervals.
How can I control the scale here.
update:
order= worked.
The important question is "Did the graph get created as needed." Those warnings are exactly that, warnings. Sometimes people do not realize that default behavior for displayed tick marks will not have a uniform spacing. You get the exact same warning if using a date value and an order statement like order = ('01Jan2018'd to '01Dec2018'd by month) because months have different numbers of days and the ticks are not the same numeric interval apart.
With complete code such as the complete Axis, symbol and or pattern definitions and the Gplot code we might have other suggestions.
Though with most of the enhancements coming in the SG graphics procedures plus the control available in the Graphics Template Language that part of base SAS now it may be time to consider changing procedures.
order= worked
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.