I am trying to represent dots/bubble corresponding to cities that increase size proportional to population.
despite several attempts, I get always the same error ("Discrete value supplied to continuous scale"), even though my variable is numeric.
Example Data used can be found here
https://github.com/Lulliter/r-ggplot-points-question
- Brazil_bound_sf = boundary
- Brazil_cit_longlat = list of cities with Population # over few years
Plot does not Work
ggplot() + 
  geom_sf (data = Brazil_bound_sf, 
         aes(fill = NULL), alpha = .1,colour = "darkgrey",size = 0.3) +
  geom_point(data = Brazil_cit_longlat, aes( x = lon, y = lat, size = 
           "2016"), fill = "red", color = "grey", alpha = .2) + 
  scale_size_continuous()  +
  coord_sf(crs = st_crs(Brazil_bound_sf), datum = NA) + 
  theme_void() 
# Error: Discrete value supplied to continuous scale
Thanks!
 
    