Graphics Reference
In-Depth Information
)
}
Then add it to the map ( Figure 13-38 ). In this example, we'll add it to one of the choropleths we
created in Creating a Choropleth Map :
ggplot(crimes, aes(map_id = state, fill = Assault_q)) +
geom_map(map = states_map, colour = "black" ) +
scale_fill_manual(values = pal) +
expand_limits(x = states_map$long, y = states_map$lat) +
coord_map( "polyconic" ) +
labs(fill = "Assault Rate\nPercentile" ) +
theme_clean()
Search WWH ::




Custom Search