r - 如何在 colab R 中运行 plotly 库
问题描述
我在 google colaboratory 中使用 R。我想使用 ploly 库,但它不提供图表。我正在使用以下代码:
library(plotly)
fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
fig
它给了我输出
No trace type specified:
Based on info supplied, a 'scatter' trace seems appropriate.
Read more about this trace type -> https://plotly.com/r/reference/#scatter
No scatter mode specifed:
Setting the mode to markers
Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode
No trace type specified:
Based on info supplied, a 'scatter' trace seems appropriate.
Read more about this trace type -> https://plotly.com/r/reference/#scatter
No scatter mode specifed:
Setting the mode to markers
Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode
并且没有提供图表。是否可以在 R colab 中使用 plotly ?
解决方案
推荐阅读
- laravel - 如何将请求传递给 Laravel Eloquent ::with 函数?
- php - PHP只不能隐藏内存耗尽致命错误的错误显示
- python - 如何在 MATLAB 中转换这个 Python 嵌套的 for 循环?
- wso2 - 如何在谷歌oauth登录表单中显示预填的电子邮件
- angular - 在 ag-grid 中设置和更改数据
- reactjs - 打字稿:将函数参数视为文字类型
- c# - 流利的 NHibernate C#。如何从两个不同的程序集中使用表模型(实体)和她的 Map 类?
- php - 如果输出为空,如何重新发送 curl 请求
- python - 收集列表中的单个变量
- javascript - 为什么注入 javascript 代码是个坏主意