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 7000947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:44:22+00:00 2026-05-27T20:44:22+00:00

I am trying to make a topographic map using different density points for density

  • 0

I am trying to make a topographic map using different density points for density cells in a retina. The example of volcano3d is really nice and it gave me the idea so I think I will phrase my question according to this example.
My question is if I have the contour of an island with x,y coordinates plotted like geom_path is it possible to construct a contour map inside the path only?
I tried to do it but r tells me that the problem is that my x and y axis are not continuous.
This is the first points in my data to give you an example, x and y are coordinates and freq should be z axis. Sorry for not putting the whole data but the contour has over 3000 points and then I have around 250 samplings inside so it is a long data set.

p <- ggplot(data = contour.xy, aes(x = x, y = y)) + 
  geom_path(data = contour.xy, aes(x = x, y = y)) + 
  geom_path(data = opticnerve.xy, aes(x = x, y = y)) + 
  geom_contour(data = counts, aes(x = "x", y = "y", z = "freq")) + 
  coord_equal()

I tried to put an image but I am a new user so because anti spam regulations I can’t attach pics.

  • 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-27T20:44:22+00:00Added an answer on May 27, 2026 at 8:44 pm

    Finally after doing some research found a package that helps me do exactly what I was looking for. It is spatstat written by Adrian Baddeley and he very kindly help me with a part of the script. Basically what it does is to create a window with an irregular shape, in this case my “island” and then all the points that I need to analyse fall inside the window.
    To create the window I used the following code using x vector as xp and y vector as yp:
    map <- owin(poly=list(x=xp, y=yp))
    plot(map)

    Then I can create all the points as point pattern (ppp)

    Really appreciate all your help but in special to Adrian Baddeley for his support

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

Sidebar

Related Questions

Trying to make my project using storyboard. I changed my info.plist and added entry
Trying to make a Grid Like this using java and I'm assuming a 2d
Im trying to make a recreation of MSWord using WPF RichTextBox and Toolbar, so
In trying to make my Javascript unobtrusive, I'm using onLoad s to add functionality
I'm trying make some stuff in jQuery using ASP.NET. But the ID from runat=server
Context: I'm trying to clip a topographic map into the minimum-size ellipse around a
I'm trying make a <dl> to define the icons I am using on the
Trying to make an app using phonegap 1.4.1 + phonegap's childbrowser plugin. I've been
I am trying make long screen to vertical direction. So, I need a screen
Trying to make a make generic select control that I can dynamically add elements

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.