Please see below image. This image is created by first converting a two-column data frame into a study window (call it study\_win) using as.owin, and then plotting another two-columns data-frame (call it study\_points)on top of the window.

It is clear that the points are lying inside the window! However when I call 

```
ppp(study_points[,1],study_points[,2],win = study_window) 

```

it says that most of my points are rejected as lying outside the window. Could someone tell me what is going on? 

Thanks!

[![enter image description here](https://i.stack.imgur.com/nKAto.png)](https://i.stack.imgur.com/nKAto.png)