Understanding how environmental factors influence species distributions can be aided by determining which areas of the available climate space a species currently occupies. You are interested in showing how much and what part of the available global temperature and precipitation range is occupied by some common tree species. Create three graphs, one each for Quercus alba, Picea glauca, and Ceiba pentandra. Each graph should show a scatterplot of the mean annual temperature and mean annual precipitation for points around the globe and highlight the values for 1000 locations of the plant species. Start by decomposing this exercise into small manageable pieces.
Here are some tips that will be helpful along the way:
getData('worldclim', var =
'bio', res = 10)
(from the raster
package) will download all of the bioclim
variables. The two variables you need are bio1
(temperature) and bio12
(precipitation).sample_n
from the dplyr
package) to limit the time it takes to generate.spocc
package. An example of how to get the data you need is
available in the
Species Occurrences Map
exercise.Challenge (optional): If you want to challenge yourself trying making a single plot with all three species, either all on the same plot of split over three faceted subplots.
[click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output] [click here for output]