You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably due to a bug in ggplot2. See tidyverse/ggplot2#743 If this is the source of the problem, the workaround is to pass environment = environment() to ggplot().
As a general note, it's better to name the columns of the data frame when you use aes(), instead of pulling out columns as you've done. Something like this:
Thanks for the notice: environment = environment() resolved the issue!
I agree that it is better to name x,y values, I only simplified for the example here. Naming them doesn't resolve the issue however, environment = environment() is the only way I can see it working at the moment.
Unless I'm doing something wrong, I can't seem to use objects defined outside of renderPlot(). For example, the following works:
However, the following does not:
Gives "Error: object 'mpgData' not found"
The text was updated successfully, but these errors were encountered: