dipetkov / reemsplots2

11 stars 0 forks source link

Plotting issue #4

Open sduplessis1 opened 1 year ago

sduplessis1 commented 1 year ago

Hi,

I'm trying to plot pie charts over the ggproto object plots$qrates01, but get the error message 'Error: Discrete value supplied to continuous scale' and I can't figure out what its refering to, or how to correct it?

For example, it works when I run this: require(scatterpie) ggplot()+ geom_path(data = map, aes(x = long, y = lat, group = group), color = "black", size = 0.5, alpha=0.3)+ coord_quickmap()+ geom_scatterpie(aes(x=long, y=lat), data=admix2, cols=LETTERS[1:5])

But I get the error when I run this: plots$qrates01+ geom_path(data = map, aes(x = long, y = lat, group = group), color = "black", size = 0.5, alpha=0.3)+ coord_quickmap()+ geom_scatterpie(aes(x=long, y=lat), data=admix2, cols=LETTERS[1:5])

Any ideas or suggestions of what I could try?

Thanks, Sarah

jmhallas commented 1 month ago

Hi @sduplessis1 ,

I am running into similar issues. I'm trying to plot geographic features using ggplot on my eems surface and was wondering if you ever found a solution.

Thanks...

sduplessis1 commented 1 month ago

Hi @jmhallas , sadly I didn't work this out. If you find a solution please let me know! Thanks, Sarah