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
The reported error is Error: Unknown parameters: subset. The same problem occurs all of all other geoms.
Digging through the ggplot sources, it seems that in R/geom-point.r:129 the subset argument becomes an element of the params list. However in R/layer.r:22 it's still a separate argument. So simply changing R/layer.r:75 to use subset = params$subset, instead of `subset = subset,' might fix the problem.
I've noticed the deprecation warning for the subset argument in R/layer.r:9. However I could not find what the new suggested way should look like. It was/is a very useful element of the ggplot API that I used to define custom DSLs (e.g. by using unevaluated layer definitions as function arguments that were internally used to build plots).
The text was updated successfully, but these errors were encountered:
The following code was working with ggplot2 v1.X but does not longer with v2
The reported error is
Error: Unknown parameters: subset
. The same problem occurs all of all other geoms.Digging through the ggplot sources, it seems that in
R/geom-point.r:129
the subset argument becomes an element of theparams
list. However inR/layer.r:22
it's still a separate argument. So simply changingR/layer.r:75
to usesubset = params$subset,
instead of `subset = subset,' might fix the problem.I've noticed the deprecation warning for the
subset
argument inR/layer.r:9
. However I could not find what the new suggested way should look like. It was/is a very useful element of the ggplot API that I used to define custom DSLs (e.g. by using unevaluated layer definitions as function arguments that were internally used to build plots).The text was updated successfully, but these errors were encountered: