BookmarkSubscribeRSS Feed
cookan
Calcite | Level 5

I'm using proc sgmap to make a bubble plot of walleye catches in Lake Erie.  I would like to reduce the maximum size of the bubbles to fit the map better.  The BRADIUSMAX option doesn't seem to work (as it does in proc sgplot).

 

 

 

*variable "wall" is the catch of walleye in index nets;

*second set of coordinates plot zero catches - catches greater than zero have missing coordinates;

goptions reset=all;

ODS PDF FILE='Erie_Map_wal2019.pdf' NOTOC;

title 'Walleye Catch 2019';

proc sgmap mapdata=Erie plotdata=map1;

choromap / mapid=ID density=6 ;

bubble X=X Y=Y size=wall / NOFILL BRADIUSMAX=20;

scatter X=X2 Y=Y2 / markerattrs=(color=red size=6 symbol=circlefilled) ;

run;

ODS PDF CLOSE;

title;

 

Any help would be appreciated.

 

Andy

 

7 REPLIES 7
Krueger
Pyrite | Level 9

Did you also use the BRADIUSMIN in conjuction with the BRADIUSMAX?

 

It also looks like you need to specify the dimension value. Below is taken from here: https://documentation.sas.com/?docsetId=grmapref&docsetTarget=p1nywdk7q1c0esn1myhukeensapm.htm&docse...

 

SAS 9.4M6 BRADIUSMAX=n<units>

specifies the size of the radius of the largest bubble. You can specify any positive number for n, including decimals, as the dimension of the size.

If you want to specify a dimension in a unit other than the default, then you must specify the desired unit with the dimension value. An example is BRADIUSMAX=5PX. For a list of measurement units that are supported, see Units of Measurement in SAS ODS Graphics: Procedures Guide. Viable units of measure are CM, IN, MM, PCT or %, PT, or PX.

cookan
Calcite | Level 5

I added BRADIUSMIN and px units without success.  The log message is:

 

ERROR 22-322: Syntax error, expecting one of the following: ;, DATALABEL, DATALABELATTRS,

DATALABELPOS, FILL, FILLATTRS, LEGENDLABEL, NAME, NOFILL, OUTLINE, TRANSPARENCY.

ERROR 76-322: Syntax error, statement will be ignored.

 

Thanks for the suggestion though.

 

Andy

Krueger
Pyrite | Level 9

What version of SAS are you running it seems like maybe your not on 9.4 M6?

cookan
Calcite | Level 5

9.4 TS level 1M5

x64 10pro

 

Not expected to work?

Krueger
Pyrite | Level 9

It looks like it was added with M6 version. Given the log doesn't mention it as it does with the other optional parameters I'm going to assume that's the reason why BRADIUSMAX is not working for you. I've never messed with a bubble plot or anything regarding ODS graphics so outside of upgrading to the M6 version I'm out of ideas unfortunately.

cookan
Calcite | Level 5

OK thanks. Appreciate your help.

 

Krueger
Pyrite | Level 9

Good luck, once you get it working I wouldn't mind seeing the output. I'm not much of a walleye fisherman (Bass for me) but something like this could come in handy on some of my local lakes before fishing tournaments.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 7 replies
  • 1381 views
  • 2 likes
  • 2 in conversation