Hi
I am not able to get the gridlines on Yaxis, though I was using griddisplay=on. And also; how can I customize the grid line color/pattern/line size?
Thanks in advance.
proc template;
define statgraph plotlab;
dynamic _byval2_;
begingraph;
layout overlay / xaxisopts=(display=(label ticks tickvalues) label='Visit' tickvalueattrs=(size=8pt)
linearopts=(tickvaluelist=(&incrm_x ) viewmin=1 viewmax=&maxvis_x TICKVALUEFITPOLICY=ROTATE) )
yaxisopts= (griddisplay=on label='Subject' display=(label ticks tickvalues) tickvalueattrs=(size=8pt));
scatterplot x=visitnum y=sub_vis / group=wma
markerattrs=(size=10px) name='a' ;
discretelegend 'a' / title = '' halign=center valign=bottom ;
endlayout;
endgraph;
end;
run;
With graphics questions it is a good idea to include the SAS version you are using as options change (increase) with every release.
The GRIDATTRS option should control the appearance of grid lines and defaults to the active style's GraphGridLines style element.
I would be tempted to examine your active style for the value of the GraphGridLines style element. Perhaps for some reason it is using the same as the background color so the grids are drawn just not visible.
Hi Ballardw,
I am using SAS 9.4
Thanks
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.