Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4062752
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:38:18+00:00 2026-05-20T15:38:18+00:00

I have the x,y co-ordinates for a bounding ellipsoid in a data.frame. And then

  • 0

I have the x,y co-ordinates for a bounding ellipsoid in a data.frame. And then I have several query x,y co-ordinates in a data.fame. The x,y co-ordinates for a bounding ellipsoid was calculated using the function…

exy <- ellipsoidhull(X[,1:2])

such that….

plot(predict(exy), xlim=c(-0.018, 0.015), ylim=c(-0.018,0.015), 
     cex=0.1, type="l")

gives me a plot like this….

enter image description here

I have query like this….

     V2      V3
-0.0167 -0.0137
-0.0159 -0.0127
-0.0150 -0.0127
-0.0164 -0.0137
-0.0164 -0.0134
-0.0173 -0.0131

How can I find which of the query is within/outside the bounding ellipsoid? Is there an R function to do this? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:38:19+00:00Added an answer on May 20, 2026 at 3:38 pm

    Package mgcv offers such function (but is not the only one – if you care to learn about spatial objects, see, for example, sp::overlay). This is example from the in.out() function.

    library(mgcv)
    data(columb.polys)
    bnd <- columb.polys[[2]]
    plot(bnd,type="n")
    polygon(bnd)
    x <- seq(7.9,8.7,length=20)
    y <- seq(13.7,14.3,length=20)
    gr <- as.matrix(expand.grid(x,y))
    inside <- in.out(bnd,gr)
    points(gr,pch=as.numeric(inside)+1)
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically i have a users current location. i then have a list of co-ordinates.
I have an app which stores co-ordinates. I am using Google maps to show
I have a query regarding Dropping Multiple Pins On Map when Co-ordinates are given
I have used constant co-ordinates in code in several places in my iPhone app,
I have written the below code to calculate mouse moved co-ordinates $(document).mousemove(function(e){ console.log(e.pageX +
I have sets of co-ordinates in the following format (-33.9,18.6) How do I go
I have successfully plotted a line between some random co-ordinates on Google Maps for
I have a vector which contains a list co-ordinates ...x1,y1 ; x2,y2....xn,yn I am
There exists an unknown target location (latitude and longitude co-ordinates). I have 3 latitude
I want to get mouse x and y co-ordinates through JavaScript. I have tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.