Hi All,
How can I draw a horizontal line at 0 value on the axis to make the 0 line more clear?
here is my code:
proc sgplot data=boxplot_BASILAR_VOL;
vbox BASILAR_VOL / category = group group = group
lineattrs=(pattern=solid) whiskerattrs=(pattern=solid);
xaxis display=(nolabel) type = discrete labelattrs = (size = 15pt Weight = Bold) valueattrs = (size = 20pt);
yaxis grid labelattrs = (size = 20pt Weight = Bold) valueattrs = (size = 15pt);
keylegend / location = inside position = topright across = 1;
run;
Thanks
Sorry, it's REFLINE not HREF, you may want to play around with the THICKNESS option.
I can't test it because you're referencing your data. It's preferable to use code that references a dataset in SASHELP then we can test code as we suggest it.
refline 0 / axis = y LINEATTRS=(Color=black thickness=10);
Add an HREF line with the properties you want?
Another option is to change the lines to be light grey except for the 0 line.
Hi Reeza,
Coule you give me more explanation please? Can I make 0 line as black. My boxplot graph already have the light grey lines.
Thanks,
Sorry, it's REFLINE not HREF, you may want to play around with the THICKNESS option.
I can't test it because you're referencing your data. It's preferable to use code that references a dataset in SASHELP then we can test code as we suggest it.
refline 0 / axis = y LINEATTRS=(Color=black thickness=10);
Hi Reeza,
Yes, that's helpful!!!
Thanks so much!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.