Closed linx0830 closed 7 years ago
This is an issue of ggplot2
which wont allow mapping 2 both discrete and continuous variable to aes(fill)
.
geom_scatterpie
will map aes(fill)
to fill the pies (of course discrete values), and it will conflict with your aes(fill=long)
.
In the following example, if "fill" geom_map(aes()) is set, the error "Discrete value supplied to continuous scale" shows up; however, if "fill" is not in aes(), it is fine.