Hi I want to create a square axis scatter plot with up to 60 legends , I am using proc template and Proc SGrender procedure.(which is kind of standard i have to follow) gplot is not allowed. But the plot is rectangular most of the time. also i have two x y axes. i have tried layout lattice / rowdatarange=data columndatarange=data rowgutter=10 columngutter=10; layout overlayequated /equatetype=square xaxisopts=(griddisplay=off label="" labelattrs=(family="arial" size=11pt weight=normal) linearopts=( viewmin=0.0 viewmax=&xmax_mg. minorticks=ON minortickcount=9 tickvaluesequence=( start=0.0 end=&xmax_mg. increment=&mg_incr.))) yaxisopts=( griddisplay=off label="Glucose Result (mg/dL)" labelattrs=(family="arial" size=11pt weight=normal) linearopts=( viewmin=0.0 viewmax=&ymax_mg. minorticks=ON minortickcount=9 tickvaluesequence=( start=0.0 end=&ymax_mg. increment=&mg_incr.))) x2axisopts=( label="" labelattrs=(family="arial" size=11pt weight=normal) linearopts=( viewmin=0.0 viewmax=%sysevalf(&xmax_mg. / 18.016) minorticks=ON minortickcount=4 tickvaluesequence=( start=0.0 end=&xmax_mm. increment=&mm_incr.))) y2axisopts=( label="Glucose Result (mmol/L)" labelattrs=(family="arial" size=11pt weight=normal) linearopts=( viewmin=0.0 viewmax=%sysevalf(&ymax_mg. / 18.016) minorticks=ON minortickcount=4 tickvaluesequence=( start=0.0 end=&ymax_mm. increment=&mm_incr.))) ; scatterplot x= &x_var_mg. y= &y_var_mg. / group=&group. name='scatter'; scatterplot x= &x_var_mg. y= &y_var_mm. / name='scatter2' yaxis=y2 datatransparency=1; scatterplot x= &x_var_mm. y= &y_var_mg. / name='scatter3' xaxis=x2 datatransparency=1; annotate; endlayout; sidebar / align=bottom spacefill=false; discretelegend 'scatter' / opaque=true border=false halign=center valign=center displayclipped=true order=rowmajor across=2 title='' titleattrs=(family="arial" size=10pt weight=bold); endsidebar; endlayout; endgraph; end; run;quit; but this doesn't work.
... View more