Skip to content

could not find function "ggplotly" #752

@talomvalg

Description

@talomvalg

Hi! I keep getting this error

could not find function "ggplotly"

I have tried to reinstall all packages (plotly, ggplot2 and scales) from their respective github repos, but keep getting the error. I only get the error in markdown and not when I run it in Rstudio.

Any ideas why shiny won't let it run?

`---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill

runtime: shiny

library(flexdashboard)

Column {data-width=650}

Chart A

plotly::renderPlotly({

  g <- ggplot2::ggplot(faithful, ggplot2::aes(x = eruptions, y = waiting)) +
  ggplot2::stat_density_2d(ggplot2::aes(fill = ..level..), geom = "polygon") + 
  ggplot2::xlim(1, 6) + ggplot2::ylim(40, 100)

  plotly::ggplotly(g)
})

Column {data-width=350}

Chart B

Chart C

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions