Lab 3F
Directions: Follow along with the slides, completing
the questions in blue on your
computer, and answering the questions in red in your
journal.
Space, Click, Right Arrow or swipe left to move to
the next slide.
R to create an interactive map
of the mtns data we scraped in Lab 3E.load_lab(23) command, as an
R Script.
leaflet() function and the
mtns data to create the leaf that we can use
for mapping.mtns_leaf into the
addTiles() function and assign the output the name
mtns_map.mtns_map in the console to look
at your basic map with no data displayed.
addMarkers() function.peak variable, in a
similar way as we supplied the lat and long
variables, to the popup argument and include it in the code
above.state
it’s located in.mtns_leaf and mtns_map to use it.
mtns_leaf and
mtns_map as you did before.addMarkers to
addCircleMarkers and keep all of the arguments the
same.addCircleMarkers like before but this time include
color = ~state_colors as an argument.mtns_map.