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 😊
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.