Hi, I'd like to colour the plots on my scatter diagram in red. The code I am currently using is: ods graphics / reset imagemap; title "Data Set 1 - Sales in 2015"; proc sgplot data = work.data1a (where =(online = 2)); scatter x = tradingyears y = sales2015; label sales2015 = 'Sales in 2015'; run; ods graphics / reset; title; I simply want to add like color='red'; but not sure how? TIA
... View more
Hi, I'm trying to create a scatter plot with two continuous variables. I'd then like to colour the plots according to a third, categorical variable. Is this possible? My code so far is proc sgplot data = sasuser.data1; scatter x = tradingyears y = sales2015; run;
... View more
Hi I'm trying to produce a histogram within SAS for education.
I tried using proc sgplot but was unable to make the intervals at the edges not the centre.
So I tried using proc univariate but was unable to label my axis.
Is it possible to do both?
proc univariate data=SASUSER.DATA1; histogram sales2015 / endpoints=(0 to 16000 by 2000); run;
proc sgplot data=SASUSER.DATA1;
histogram sales2015 / nbins=7 binstart=1000 binwidth=2000 SHOWBINS ; xaxis label="Sales in 2015";
yaxis grid; run;
... View more