proc gplot data=shareef.tra_pt_1m1;
plot mean_*day;
symbol value= star interpol=sm45;
run;
quit;
my x-axis values arein order in the columneg 3,7,15,30,90,180,360,720.
However in the plot i see it as
15,180,3,30,360,7,720
Thanks for help.
Regards
Mohammed Shareef
Perhaps sort the input data, I know that sometimes the order is implied from the appearance in the data. Alternatively, and my suggestion, move over to sgplot or GTL (these are the most up to date, and offer a great welth of customization), and explicitly specify all your axis. You can find examples at: http://blogs.sas.com/content/graphicallyspeaking/
DAY must be character as this example demonstrates.
As data_null points out, your day values appear to be character, and the axis is therefore sorting alphabetically (rather than numerically). You could use 'proc contents' to verify that. You could add a numeric version of 'day' to your dataset (or add it in a temporary dataset), as follows...
data plot_data; set shareef.tra_pt_1m1;
day_numeric=.; day_numeric=day;
run;
proc gplot data=plot_data;
plot mean_*day_numeric;
symbol value= star interpol=sm45;
run;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.