Is there a way to get rid of tick marks entirely in GTL? As part of my layout, I'm overlaying a scatter and a boxplot for my two different treatment groups. I don't want tickmarks at all, which I can do in proc sgplot with a display=(noticks) option, but I can't seem to find a similar option in GTL. Is there a way to get this done?
EXAMPLE CODE
layout overlay / xaxisopts=(label=("Change") tickvalueattrs=(size=0 color=white)) yaxisopts=(label=" " labelposition=top); scatterplot y=CHG x= TRT / group=TRT groupdisplay = cluster clusterwidth=1 markerattrs=(size=5 symbol=circlefilled); boxplot y=CHG x=TRT / group=TRT grouporder=data groupdisplay=cluster fillattrs=(transparency=0.6) boxwidth = 1; endlayout;
Yes, there is. In SGPLOT and SGPANEL, axis displays options are subtractive (noticks, notable, etc). In GTL, they are additive -- you specify what you want. So, using the DISPLAY option on the XAXISOPTS/YAXISOPTS options, you would specify DISPLAY=(line label tickvalues) to display everything except the tick marks. Hope this helps!
Yes, there is. In SGPLOT and SGPANEL, axis displays options are subtractive (noticks, notable, etc). In GTL, they are additive -- you specify what you want. So, using the DISPLAY option on the XAXISOPTS/YAXISOPTS options, you would specify DISPLAY=(line label tickvalues) to display everything except the tick marks. Hope this helps!
perfect! thank you
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.