Skip to content

Package version issues ggplot2 vs plotly #43

Description

@remi-daigle

some versions of ggplot2 are not playing nice with plotly, if this does not produce a plot (it gets an error that says something about pm[[2]])

library(plotly)
library(ggplot2)
# Minimal reproducible test
df <- data.frame(x=c("a","b"), y=c(1,2), fill=c("A","B"))
p <- ggplot(df, aes(x=x, y=y, fill=fill)) + geom_bar(stat="identity")
ggplotly(p)

then you have the same problem as out server just had. I fixed it by reverting ggplot versions

remotes::install_version("ggplot2", version="3.5.1")

Not really an issue with our package per se, but something to be aware of.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions