BookmarkSubscribeRSS Feed
ThiNguyen
New User | Level 1

Need help please,

Hi all, I would like to delete the inner borders (the right and top borders of the graph), only keep the lines/borders of the X and Y axes. I have tried to use the following codes to remove the right and top inner borders, but could not succeed. 

Thank you!

 

ods graphics / noborder;

proc sgplot data=MeanData noautolegend; title;

styleattrs datacontrastcolors=(red green black) wallcolor=white;

loess x=t y=Means / group=Treatment nomarkers smooth=0.3 lineattrs=(thickness=3);

xaxis label="Days" max=100 labelattrs=(size=16) valueattrs=(size=14);

yaxis label=“OD, g/d" max=30 values=(0 to 50 by 5) labelattrs=(size=16) valueattrs=(size=14);

x2axis display=none;

y2axis display=none;

run;

2 REPLIES 2
Ksharp
Super User

Could you post a desired graph to explain what you are looking for ?

And you want this ?

 

ods graphics / noborder;
proc sgplot data=sashelp.heart(obs=1000) noautolegend noborder; title ;
styleattrs datacontrastcolors=(red green black) wallcolor=white;
loess x=height y=weight / group=bp_status nomarkers smooth=0.3 lineattrs=(thickness=3);
xaxis label="Days" labelattrs=(size=16) valueattrs=(size=14);
yaxis label="OD, g/d" labelattrs=(size=16) valueattrs=(size=14);
x2axis display=none;
y2axis display=none;
run;

Ksharp_0-1763019063528.png

 

ThiNguyen
New User | Level 1
Hi,
Many thanks for your help! I already created the graph, but I could not remove/delete the right and the top borders of the graph.
The following is an example where the right and the top borders have been removed (only show x and y axes lines)

Thank you!
[cid:e2eb064e-6b83-49c1-99e0-bbd17e661b51]
How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 128 views
  • 0 likes
  • 2 in conversation