Skip to content

geom/stat_function no longer supported #1872

@Kezrael

Description

@Kezrael

I used to be able to run the following code to render the plot containing stat_function() interactive (it was actually used with renderPlotly in a shiny app, but I tried to keep it simple and reproductible) before updating to the latest versions of R Studio and Plotly:

p <- ggplot(data = data.frame(x = 0), mapping = aes(x = x)) + 
  stat_function(fun = function(x) x^2+3) + 
  stat_function(fun = function(x) 5) + 
  xlim(1, 5)

ggplotly(p)

Now it throws the error 1: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) : geom_GeomFunction() has yet to be implemented in plotly..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions