Hi all -
I am trying to make the font size of all words in my plot to be 14... I succeeded for labels of xaxis and yaxis but not for legendlabels in scatter and in lineparm... How can I change their font size?
proc sgplot data = dataset;
scatter x = x1 y = y1 / jitter legendlabel = "Some label";
lineparm x=0 y=0 slope=1 / lineattrs=(color = red) legendlabel = "Diagonal line";
xaxis label = "Variable X" labelattrs=(size = 14);
yaxis label = "Variable Y" labelattrs=(size = 14);
run;
Thank you!
Please try this:
proc sgplot data=dataset;
scatter x=x1 y=y1 / jitter name="scatter_name" legendlabel="Some label";
lineparm x=0 y=0 slope=1 / lineattrs=(color=red) name="diagnonal_name"
legendlabel="Diagonal line";
keylegend "scatter_name" "diagnonal_name" / valueattrs=(size=14);
xaxis label="Variable X" labelattrs=(size=14) valueattrs=(size=14);
yaxis label="Variable Y" labelattrs=(size=14) valueattrs=(size=14);
run;
Best,
Please try this:
proc sgplot data=dataset;
scatter x=x1 y=y1 / jitter name="scatter_name" legendlabel="Some label";
lineparm x=0 y=0 slope=1 / lineattrs=(color=red) name="diagnonal_name"
legendlabel="Diagonal line";
keylegend "scatter_name" "diagnonal_name" / valueattrs=(size=14);
xaxis label="Variable X" labelattrs=(size=14) valueattrs=(size=14);
yaxis label="Variable Y" labelattrs=(size=14) valueattrs=(size=14);
run;
Best,
Great! You're welcome @Amanda_Lemon 😊
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.