首页 > 解决方案 > ggplot2 对象上的 ggplotly 函数崩溃 R & RStudio

问题描述

ggplotly()对 ggplot2 对象的简单调用会使 RStudio 崩溃。下面开始简单的代码。

library(plotly)
library(tidyverse)

iris.ggplot <- ggplot(data = iris,
                      aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
  geom_point()

print(iris.ggplot)

ggplotly(iris.ggplot)

错误消息的屏幕短

标签: rrstudioplotly

解决方案


推荐阅读