the graphs in the Results Viewer have a nice color but my pdf file is black and white.
code:
ods pdf file="scores\Data files for researchers - SCDE\2021\plots of sdoc_sc_top10.pdf" ;
PROC sort data=dst10_math;
by demoid;
run;
/* YAXIS LABEL = 'Rain in Inches' GRID VALUES = (0 TO 10 BY 1); */
proc sgplot data=dst10_math;
by demoid;
styleattrs
datacontrastcolors=(red green blue);
vbar testgrade / response=mathpct34 group=level groupdisplay=cluster datalabel=mathpct34;
xaxis display=(nolabel noline noticks);
yaxis display=(nolabel) values=(0 to 80 by 10) ;
run;
ods pdf close;
Style = mmh_basic_blue1 appears to be a custom style. Did you define the colours for graphs or which style does it inherit from?
@GreggB wrote:
the graphs in the Results Viewer have a nice color but my pdf file is black and white.
code:
ods pdf file="scores\Data files for researchers - SCDE\2021\plots of sdoc_sc_top10.pdf" style=mmh_basic_blue1; PROC sort data=dst10_math; by demoid; run; /* YAXIS LABEL = 'Rain in Inches' GRID VALUES = (0 TO 10 BY 1); */ proc sgplot data=dst10_math; by demoid; styleattrs datacontrastcolors=(red green blue); vbar testgrade / response=mathpct34 group=level groupdisplay=cluster datalabel=mathpct34; xaxis display=(nolabel noline noticks); yaxis display=(nolabel) values=(0 to 80 by 10) ; run; ods pdf close;
my apologies. It should not be there. When I delete it, nothing changes.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: