Dear community,
I have produced a scatter plot using proc template and proc sgrender, with x-axis in log scale using:
The feedback I got was that I must show also the observations with negative samples. So the x-axis should look like this:
How can I achieve this??
Many thanks for your support
Since the LOG function is basically not defined for negative numbers I haven't a clue what your advisor or commentators are actually suggesting.
From the documentation associated with Layout Overlay and Log Axes:
The numeric data that is used for a log axis must be positive. If zero or negative values are encountered, a linear axis is substituted and the following note is written to the log:NOTE: Log axis cannot support zero or negative values in the data range. The axis type will be changed to LINEAR.
If you must display negative X axis values then you aren't going to do it with Type=LOG axis. I would go back to the source of the feedback and see what they say about negative values and a LOG axis.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.