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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:25:34+00:00 2026-06-07T16:25:34+00:00

How does one prevent country polygons from being cut off under different projections? In

  • 0

How does one prevent country polygons from being cut off under different projections?

In the following example, I would like to do a stereographic projection map of Antarctica including latitudes < -45°S. By setting my y-limits to this range, the plot area is correct, but then the country polygons are also cropped at these limits. Is there any way to have the coastlines plotted to the edges of the plot area?

Thanks for any advise.

library(maps)
library(mapproj)

ylim=c(-90,-45)
orientation=c(-90, 0, 0)

x11()
par(mar=c(1,1,1,1))
m <- map("world", plot=FALSE)
map("world",project="stereographic", orientation=orientation, ylim=ylim)
map.grid(m, nx=18,ny=18, col=8)
box()

enter image description here

  • 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-06-07T16:25:36+00:00Added an answer on June 7, 2026 at 4:25 pm

    The problem is because you are specifing a max ylim of -45, and the data are being cut accurately at that latitude. Clearly the actual bounds of the plot are calculated in a separate way, which is probably to do with some kind of conservative assumption based on the resulting projected limits (but that I know nothing about without exploring the source code).

    You can avoid the problem by setting up a dummy plot that doesn’t draw the coastline, then add the data on top with an increased ylim:

    library(maps)
    library(mapproj)
    
    ylim = c(-90,-45)
    orientation=c(-90, 0, 0)
    
    x11()
    par(mar=c(1,1,1,1))
    m <- map("world", plot=FALSE)
    map("world",project="stereographic", orientation=orientation, ylim=ylim, col = "transparent")
    map("world",project="stereographic", orientation=orientation, ylim=ylim + c(-5, 5), add = TRUE)
    map.grid(m, nx=18,ny=18, col=8)
    box()
    

    BTW, this strategy won’t work for all projections since some will imply overlap for some data limits, but Polar Stereographic just extends out from the centre so there’s no such problem here.

    Also, there would be a more up to date way to do this with maptools, rgdal and rgeos that would allow you to use data sharing a proper PROJ.4 Stereographic projection (but I haven’t quite figured out the clipping step). The projections in mapproj are “shape-only” and it would be a bit of work to get other data into those, afaik.

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

Sidebar

Related Questions

Say for example, one has a table with certain rows, how does one prevent
I would like to prevent one of my root processes from deleting a certain
does anyone know how to prevent hibernate from loading a collection or many-to-one assocation?
How does one prevent cin from printing to a console screen in C++? Given
I want to prevent one particular character * (asterisk) from being entered or pasted
How does one implement a multithreaded single process model in linux fedora under c
So far I figured out that one can prevent Eclipse from complaining about proprietary
How does one prevent an inclusion cycle in C? ie. You shouldn't have a.h
Does anyone know how I can prevent the text in a table cell from
Is there any way to prevent a key like F1 from being pressed? After

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.