BookmarkSubscribeRSS Feed
tparvaiz
Obsidian | Level 7

Hi,

my  GPLOT is not giving me continues data... as an example let's say if I have volumes for 10 days then the graph is showing Day1, day3, day5, day7, Day9... Here is the code that I've used...

may I know how to fix this issue

Thanks in advance

TITLE1 FONT='Arial/Bold' Height=2 JUSTIFY=CENTER "test";

SYMBOL1 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL2 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL3 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL4 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL5 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL6 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL7 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL8 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

SYMBOL9 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_;

Legend1 FRAME;

Axis1 STYLE=1 WIDTH=1 MINOR=NONE    label=(angle=90 rotate=0 FONT='Arial/Bold' justify=center 'Level');

Axis2 STYLE=1 WIDTH=1 MINOR=NONE    label=(f='Arial/Bold' justify=center 'Days');

PROC GPLOT DATA = WORK.Temp_Table

;

PLOT VOLUME * DAY_DATE =ID_CATEGORY /  VAXIS=AXIS1 HAXIS=AXIS2 FRAME LEGEND=LEGEND1;

format volume comma10.0;

RUN;

1 REPLY 1
PaigeMiller
Diamond | Level 26

Does SAS think the variable DAY_DATE is numeric or character?

Although the horizontal axis is Day 1, Day 3, Day 5, etc., that is consistent with a continuous variable (also consistent with a character variable). So how do you know it is not giving you a continuous variable?

What should the horizontal axis be?

--
Paige Miller

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
  • 1 reply
  • 349 views
  • 0 likes
  • 2 in conversation