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

Passing curves to supply() and demand() causes error #13

Open
andreagolfari opened this issue Feb 22, 2024 · 0 comments
Open

Passing curves to supply() and demand() causes error #13

andreagolfari opened this issue Feb 22, 2024 · 0 comments

Comments

@andreagolfari
Copy link

I love this package and I thank you very much for it. However, I am unable to pass a data.frame to supply() and demand() to override the sample curves. When I try to do so I receive this error:

Error in `geom_line()`:
! Problem while computing aesthetics.
ℹ Error occurred in the 1st layer.
Caused by error in `FUN()`:
! object 'y' not found

Note that the same is not true for sdcurve(): passing a data.frame with x and y columns works perfectly there.

It would be awesome if you could write an example on how to achieve the desired behavior in supply() and demand().

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

1 participant