Exercise

Interactive visualization with mapview

The mapview R package allows R users to interactively map spatial datasets in one line of R code. This makes it an essential tool for exploratory spatial data analysis in R. In this exercise, you'll learn how to quickly map tidycensus data interactively using mapview and your Orange County, California median housing values dataset.

Instructions 1/3

undefined XP
  • 1

    Map the orange_value dataset interactively with the mapview() function.

  • 2

    Use the zcol parameter to map your data by the estimate column.

  • 3

    Add a legend to your mapview map with legend = TRUE.