BookmarkSubscribeRSS Feed
genemroz
Quartz | Level 8
Spoiler
I posted this on the SAS Studio community:

I use Proc KDE in SAS Studio University Edition to produce a dataset of densities on a latitude, longitude grid.  I'd like to create a contour plot of the KDE (the same as that created by Proc KDE) but overlaid on an Openstreet Map.  Can anyone provide any suggestions, guidance, documentation or tutorials that might help me achieve this goal?  Thanks in advance for any help you can provide.

PGStats(Esteemed Adviser) pointed me at the CONTOURPLOTPARM Statement which was helpful but it's not clear how to get the contour plot onto a map.  Ksharp(Grand Advisor) suggested that I post it where Robert Allison might be able to help.   I hope he follows this group.

Thanks in advance for any guidance,   Gene
2 REPLIES 2
GraphGuy
Meteorite | Level 14

If you have a bunch of x/y coordinates, and a response value, you can create a contour plot, like this example:

 

http://robslink.com/SAS/democd44/ex_05_info.htm

 

But I do not know of any way to generate contour plots in SAS/Graph Proc Gmap, or Base SAS Proc SGmap.

 

GraphGuy
Meteorite | Level 14

Oh - and if by 'contours' you mean contour lines ... if you have the contour lines as polygons in a shapefile, you could Proc Mapimport the shapefile, and then turn the x/y points into annotated lines or polygons, and overlay those on a Proc Gmap (or something like that).

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 694 views
  • 0 likes
  • 2 in conversation