Create a map of the United States that combines geographic spatial dimensions and data size

I am creating a map of the United States that highlights some specific states defined by a categorical variable. What I would like to do is inject the size of the data into these states. Something similar to a geographic histogram, such as in the image below ;

enter image description here

So far, I've just gotten to a 2D level using ggplot. I've read about mapping in RGL 3D environment, but I'm not sure how to implement it.

ggplot(data = map.data, aes(x = long, y = lat, group = group)) +
    geom_polygon(aes(fill = expansion, alpha = fpl.cat)) +
    scale_fill_manual(values = c('#004487', '#91AF5F', '#F09628'), guide=FALSE) +
    scale_alpha_discrete(range = c(.4, 1), guide=FALSE) +
    geom_path(colour = 'black', linestyle = 3) +
    coord_map()

      

+3
r maps ggplot2 rgl


source to share


No one has answered this question yet

Check out similar questions:

22
Plotting interpolated data on a map
nine
Best spatial interpolation method for heat / contour geographic maps?
3
Merge legends on a map when data is in geometry
3
Combine counties by geographic data
2
Fill continental areas with geographic maps created with R
1
r spatial mapping
0
Polygon maps in R (spatial data)
0
R: Using FIPS to create a region using the region name to display the counter
0
Using ggplot to plot a map from a matrix
-1
County level geographic map



All Articles
Loading...
X
Show
Funny
Dev
Pics