-
Notifications
You must be signed in to change notification settings - Fork 8
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
geom_baseball doesn't connect well with other data sets #6
Comments
Admittedly, I'm not sure I fully understand what the behavior you're expecting from the first example would be... wouldn't plotting the field over the points then effectively hide the points? The error you're getting is actually coming from But, back to the issue at hand: what's the expected functionality that you're looking for in the first option? Is it to merely pass the data as an argument? If so, I can investigate how to best implement this, but I do think there's some value in specifying the data and manual aesthetics the way you showed in your second example (and how it's demonstrated in the README). Thoughts? |
I totally meant passing the data as an argument to geom_baseball(). Serves me right for trying to code too early in the morning (for me). What I meant to say was:
Or passing the data argument into geom_baseball() since like you said geom_baseball("MLB") calls the ggplot() function under the hood |
Ah okay, I see what you mean now. This should then be something for all |
Hey Ross, here is some sample code of the issue I am running into. It isn't a big deal with the way this data is set up, but when I have many geom_point() functions, it starts to become a little tedious. Ideally, I'd like to do the plot on top rather than the top on bottom. The difference being that I can have a ggplot statement that takes care of the data rather than putting data = in the geom_point(). The error I get says "Error in
ggplot_add()
:! Can't addsportyR::geom_baseball(league = "MLB")
to a ggplot object. Runrlang::last_error()
to see where the error occurred."The text was updated successfully, but these errors were encountered: