title: How to simulate a spatial Poisson Process in an arbitrary region with R?
body: <p>I am working on <code>R 3.0.1</code> and I did the simulation for a <strong>clustered Poisson Process</strong>, R normally has a default area which is basically a box, in the next picture you can see my simulation:</p>
  
  <p><img src="https://i.stack.imgur.com/A1Vpf.png" alt="enter image description here"></p>
  
  <p>Everything is all right so far, the trouble is that I want to do is to simulate the same <code>distribution</code> but using a geographic area, but I do not know how I could change the parameters in order to have a different area using geographic coordinates. For example:</p>
  
  <p><img src="https://i.stack.imgur.com/TJq7z.png" alt="enter image description here"></p>
  
  <p>To sum up, basically what I want to do is to figure out how to change this area for a bigger one, in order to make the same simulation but with the new area. Here is the code I tried:</p>
  
  <pre><code>library(spatstat)
  
  sim1 = rpoispp(100)
  plot(sim1)
  </code></pre>