2

That is, is there a way to place dots at random positions inside a polygon with sf?

It's easy enough to do with maptools, using dotsinPolys, but since I like sf's "tidyness", I'd love to be able to make my dot density maps with it.

  • help(sf::st_sample) – mdsumner Sep 12 '17 at 12:03
  • @mdsumner that's the one I was looking for! If you turn your tip into an answer I'll accept it – HAVB Sep 12 '17 at 17:04
2

The analogous function now in sf is

help(sf::st_sample)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.