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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:45:07+00:00 2026-06-12T19:45:07+00:00

for a school project I have to map some data on a geographical map

  • 0

for a school project I have to map some data on a geographical map in R. Therefore I’ve got some data containing the zipcode and many other information (just no more information on the state, county or whatever).
I’ve been trying to point out on a map of the usa first all the zips I have. Just dots. Afterwards I wanted to mix and match the criteria like the count of zips I have in the data (e.g. the zips that appear very often I wanted to colour dark and the less often ones in a lither colour, later I wanted to point out e.g. the number of churns in a state).
Can somebody help me out on how I can do this?

thanks a lot

  • 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-12T19:45:08+00:00Added an answer on June 12, 2026 at 7:45 pm

    Take a look at the R zipcode package; the website contains some examples. The package features geographical coordinates of all zipcodes, so it will be trivial to show them on a map.

    Here is another pointer into the right direction: install the package “maps” and “zipcode”. Load both of them into your environment:

    library( zipcode ) ; library( maps )
    

    Now plot the map of the US:

    map( "usa" )
    

    Load the zipcode data

    data( "zipcode" )
    

    Say, you have some zipcodes, for example 90001, 46243, 32920 and you want to show them on the map.

    selected <- zipcode[ zipcode$zip %in% c( "90001", "46243", "32920" ), ]
    

    The selected data frame contain information about the zipcodes. Plot them.

    points( selected$longitude, selected$latitude, pch= 19, cex= 2 )
    text( selected$longitude, selected$latitude, selected$zip, pos=3, cex= 2 )
    

    Here is the result:

    enter image description here

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

Sidebar

Related Questions

I have a school project to program multilayer perceptron that classify data into three
I have some troubles with my school project. I have a class: #include Group.h
I'm currently working on a school project in Eclipse (We have just started using
I have a school project in which I have to implement a chat application,
I have a school project in which we're going to write a financial engine
In a school project, I have implemented a working syncadapter for syncing contacts with
We have been using Google Code SVN to store a school project. As we
I have created a MazeSolver android app for a school project. I am using
I have to implement a search algorithm in java for a school project. In
Hello I am in the process of doing a school project, where we have

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.