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

  • Home
  • SEARCH
  • 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 8425671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:20:11+00:00 2026-06-10T04:20:11+00:00

I am having some trouble with getting a certain plot layout when using the

  • 0

I am having some trouble with getting a certain plot layout when using the maps package. Here is what I am attempting:

library(maps)
library(mapdata)
aa <- rep(1,5); ab <- c(2,3,1,1,1)
mat <- rbind(aa,aa,aa,ab)
layout(mat)
map('state', mar=c(0,0,0,0))
map('worldHires', region='USA:Alaska', xlim=c(-175,-120))
map('worldHires', region='Hawaii', xlim=c(-161,-154.5))

Here is the error I receive:

Error in plot.new() : plot region too large

Usually I mess with the margins to resolve this error, but that doesn’t seem to be working. Any ideas?

  • 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-10T04:20:12+00:00Added an answer on June 10, 2026 at 4:20 am

    You can resolve this by setting the margins before plotting each new map:

    layout(mat)
    map('state')
    par(mar=c(0,0,0,0))
    map('worldHires', region='USA:Alaska', xlim=c(-175,-120), col="blue")
    par(mar=c(0,0,0,0))
    map('worldHires', region='Hawaii', xlim=c(-161,-154.5), col="blue")
    

    enter image description here


    via https://stat.ethz.ch/pipermail/r-help/2006-September/113030.html

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

Sidebar

Related Questions

I'm currently having some trouble with getting certain input fields passed along when a
I'm having some trouble getting a hold of the drawable a certain OverlayItem is
I'm having some trouble getting the text field from the page found here: Here
Im having some trouble getting Ajax.ActionLink to work how I expect. In /views/layout/_Layout.cshtml I
I'm having some trouble getting this layout to work correctly in IE. The problem
I'm having some trouble getting routes to match. I am using base-32 encoded int's
I'm having some trouble getting my buttons to work below a certain y value
Having some trouble getting a screenscraper webservice up and running on a weblogic 10.3.3
Im having some trouble getting the syntax right. I have a movie clip that
I'm having some trouble getting my head around the jquery queue method. I've got

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.