Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Plot the locations of all of the pokemon in the Vanpoke table, overlayed on a map of Vancouver. Provide the resulting graphic. The following code

Plot the locations of all of the pokemon in the Vanpoke table, overlayed on a map of Vancouver. Provide the resulting graphic. The following code segment may be useful:

image text in transcribedTable Vanpoke is like this:

image text in transcribedimage text in transcribed

library(RSQLite)

library(DBI)

devon = dbConnect(SQLite(), dynamo = 'vanPoke')

Thank you.

library(rworldmap) ## Loading required package: sp ## ### 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, xlim=c(-123.35,-122.65), ylim=c(49,49.35), main = "Pokemon in Vancouver") query = "PRAGMA table_info('Vanpoke')" dbGetQuery(dbcon, query) al x Oly_ads" "POP 2006" "POP2011" [7] "in " tickets zip R Console data.frame 13 x 6 cid name type notnull dflt_value pk O date TEXT TEXT NA TEXT NA 1 time_until 2 name 3 cp 4 level INTEGER NA INTEGER NA TEXT NA TEXT NA 5 iv 6 moveset 7 gender 8 address 9 city TEXT NA TEXT NA TEXT NA 1-10 of 13 rows Previous 1 2 Next query = "PRAGMA table_info('Vanpoke')" dbGetQuery(dbcon, query) a x [1] "CA" "Olym ds" "POP 2006 "POP2011 [7] "in " tickets "zip" R Console data. frame - 13 x 6 cid name type notnull pk dflt_value NA 0 10 latitude 11 longitude REAL REAL TEXT ooo NA 12 weather NA 11-13 of 13 rows Previous 1 2 Next library(rworldmap) ## Loading required package: sp ## ### 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, xlim=c(-123.35,-122.65), ylim=c(49,49.35), main = "Pokemon in Vancouver") query = "PRAGMA table_info('Vanpoke')" dbGetQuery(dbcon, query) al x Oly_ads" "POP 2006" "POP2011" [7] "in " tickets zip R Console data.frame 13 x 6 cid name type notnull dflt_value pk O date TEXT TEXT NA TEXT NA 1 time_until 2 name 3 cp 4 level INTEGER NA INTEGER NA TEXT NA TEXT NA 5 iv 6 moveset 7 gender 8 address 9 city TEXT NA TEXT NA TEXT NA 1-10 of 13 rows Previous 1 2 Next query = "PRAGMA table_info('Vanpoke')" dbGetQuery(dbcon, query) a x [1] "CA" "Olym ds" "POP 2006 "POP2011 [7] "in " tickets "zip" R Console data. frame - 13 x 6 cid name type notnull pk dflt_value NA 0 10 latitude 11 longitude REAL REAL TEXT ooo NA 12 weather NA 11-13 of 13 rows Previous 1 2 Next

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

explain what is meant by redundancy

Answered: 1 week ago