Dataset
A very small data set is contained in Geoms_Example.csv. Please load these data1 and display the results.2
Geoms I
Create a base plot that maps x
to the “lon” variable and y
to the “lat” variable. Add geom_
s to this base plot to make the eight plots we made during lecture.3
Geoms II
There are other geom_
s that we did not discuss during lecture. Of the others, geom_density_2d()
, geom_hex()
, geom_step()
, geom_rug()
, and geom_label()
(note that geom_label()
requires the same aes()
argument as geom_text()
) may be used with these same data. Add two of these geom_
s to your base plot from above (add the geom_
s one at a time to make two plots). Explain what was plotted (note that you may want to perform an internet search on the geom_
name for help with what it is plotting).
Geoms III
Add one or more of the geom_
s from “Geoms I” above AND one or more of the geom_
s from “Geoms II” above to create a single plot that is at least somewhat interesting (with the understanding that it is probably not that interesting yet as we don’t have much in our toolbox yet).
Download the data and load them from there into R. How to load a CSV file into RStudio is described in this video, for which the password is “NCStats” (without the quotes).↩︎
Simply type the name of the object you saved the results in. In the lecture I would just type
dfobj
.↩︎Don’t forget to load the tidyverse.↩︎