Question

Exercise 3. For this exercise use the meuse data set from the sp package.The data set...

Exercise 3. For this exercise use the meuse data set from the sp package.The data set contains the heavy metal concentrations sampled at locations along the flooded banks of the Meuse river. Use geom point() to plot the spatial coordinates, x and y. Then color the points according to the logarithm of the lead concentrations (lead).

Homework Answers

Answer #1

R code with comments (all statements starting with # are comments and can be removed)

#install the package sp for the firs time
install.packages('sp')

#load the package sp
library(sp)
#load the package ggplot2
library(ggplot2)
#load the data meuse
data(meuse)
#check some records of the dataset
head(meuse)

#plot the spatial coordinates, x and y
p <-ggplot(meuse, aes(x, y))+ geom_point()

#Then color the points according to the logarithm of the lead concentrations
p+aes(colour =log(lead))

# get this graph

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use the given data set to complete parts? (a) through? (c) below.? (Use alphaequals?0.05.) x 10...
Use the given data set to complete parts? (a) through? (c) below.? (Use alphaequals?0.05.) x 10 8 13 9 11 14 6 4 12 7 5 y 9.14 8.13 8.75 8.77 9.26 8.11 6.13 3.11 9.13 7.27 4.74 LOADING... Click here to view a table of critical values for the correlation coefficient. a. Construct a scatterplot. Choose the correct graph below. A. 0 4 8 12 16 0 2 4 6 8 10 x y A scatterplot has a horizontal...
Use the given data set to complete parts​ (a) through​ (c) below.​ (Use alphaαequals=​0.05.) x 1010...
Use the given data set to complete parts​ (a) through​ (c) below.​ (Use alphaαequals=​0.05.) x 1010 88 1313 99 1111 1414 66 44 1212 77 55 y 7.467.46 6.766.76 12.7412.74 7.117.11 7.827.82 8.848.84 6.086.08 5.385.38 8.168.16 6.436.43 5.735.73 LOADING... Click here to view a table of critical values for the correlation coefficient. a. Construct a scatterplot. Choose the correct graph below. A. 04812160481216xy A scatterplot has a horizontal x-scale from 0 to 16 in increments of 2 and a vertical...
The data set below contains the average yearly retail gasoline prices​ (cents/gallon) from 1990 to​ 2007,...
The data set below contains the average yearly retail gasoline prices​ (cents/gallon) from 1990 to​ 2007, from a regional sample of gasoline stations. Complete parts a through c. Full data set Year 1990 1991 1992 1993 1994 1995 1996 1997 1998 Price 9090 102102 112112 119119 123123 107107 9999 103103 9797 Year 1999 2000 2001 2002 2003 2004 2005 2006 2007 Price 115115 133133 153153 141141 191191 201201 190190 247247 285285 ​a) Create a histogram of the data and describe...
Part 1: Two Round Conductors Gather all items required for the exercise. Note: If using the...
Part 1: Two Round Conductors Gather all items required for the exercise. Note: If using the lab kit box, remove contents and place in a secure area. Put on your safety goggles. Center the black conductive paper on the top of the box, grid-side up. Place the two metal nuts (conductors) at the (5 cm, 10 cm) and (20 cm, 10 cm) positions on the paper. Secure using two dissection pins for each conductor. See Figure 13. Note: Place the...
1. A city official claims that the proportion of all commuters who are in favor of...
1. A city official claims that the proportion of all commuters who are in favor of an expanded public transportation system is 50%. A newspaper conducts a survey to determine whether this proportion is different from 50%. Out of 225 randomly chosen commuters, the survey finds that 90 of them reply yes when asked if they support an expanded public transportation system. Test the official’s claim at α = 0.05. 2. A survey of 225 randomly chosen commuters are asked...
a)How is it possible to determine if CaCO3 is Cl- free after synthesis? b)How can the...
a)How is it possible to determine if CaCO3 is Cl- free after synthesis? b)How can the Cl- ions be remove from CaCO3 after synthesis? I should answer the questions from the following experiment but if you know the answer and you are sure, yo do not need to read experiment. Please answer correctly because i hav no chance to make wrong :(((( Physical and Chemical Properties of Pure Substances Objective The aim of today’s experiment is to learn handling chemicals...