Support formula notation in data
argument ?
#3138
Labels
feature
a feature request or enhancement
Milestone
data
argument ?
#3138
The data argument can be used to pass a function to apply on the plot's data. It would be nice to be able to use the formula notation as well.
It should be a simple fix, either in
layer
with something likeif(inherits(data,"formula")) data <- rlang::as_function(data)
or in later inggproto
after definingfortify.formula <- function(model, data, ...) model
to return the input as is done withfortify.function
, with the same but also testing for missing with something likeif(!missing(data) && inherits(data,"formula")) data <- rlang::as_function(data)
The text was updated successfully, but these errors were encountered: