I want to make a map that has color for each state represent an variable. At same time, I want to add a pie chart for each state while keep the color in the last step.
So far, I can make the colored map with plot_usmap
and pie chart on map use geom_scatterpie separately
I wonder if I can combine them together as one map.
I tried to combine those two function with '+', but it didn't work.


Sure is this possible. But you have to be aware that by default we can only have one
fillscale so you have to keep an eye on the type of values (continuous vs. discrete) mapped on thefillaesthetic for theplot_usmapandgeom_scatterpiepart. One option to circumvent that would be to use theggnewscalepackage which allows for multiple scales for the same aesthetic as I do in my example below.Using some fake example data based on my answer on this post and the default example from
plot_usmap.