Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting issue #4

Open
sduplessis1 opened this issue Aug 28, 2023 · 2 comments
Open

Plotting issue #4

sduplessis1 opened this issue Aug 28, 2023 · 2 comments

Comments

@sduplessis1
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants