Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use the above r code as a sample code to: Plot the locations on the Canadian map where Population in 2006 is less than

image text in transcribed

Please use the above r code as a sample code to:

Plot the locations on the Canadian map where Population in 2006 is less than the last five digits of your student id number (use 12345). Make your query and plot your locations as points on your map using data obtained by your SQL query and other plotting tools. Submit your result as a .pdf file of the plot (remember to title the plot). Hint: after plotting using the above code, you may overlay points with this command: points(x=longitude, y=latitude, col='red', pch=16), where longitude and latitude are vectors of longitudes and latitudes resp.

Thank you for your help.

library(sp) library(rworldmap) ## ### Welcome to rworldmap ### ## For a short introduction type : vignette('rworldmap') library(rworldxtra) worldmap = getMap (resolution = "high") NrthAm = worldmap [which (worldmap$REGION=="North America"),] plot (NrthAm, col="white", bg="lightblue", xlim=c(-140,-55), ylim=c(55,60)) library(sp) library(rworldmap) ## ### Welcome to rworldmap ### ## For a short introduction type : vignette('rworldmap') library(rworldxtra) worldmap = getMap (resolution = "high") NrthAm = worldmap [which (worldmap$REGION=="North America"),] plot (NrthAm, col="white", bg="lightblue", xlim=c(-140,-55), ylim=c(55,60))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions