plotly

    1热度

    2回答

    继the plotly directions绘制的分布,我想画出类似下面的代码的东西: import plotly.plotly as py import plotly.figure_factory as ff import numpy as np # Add histogram data x1 = np.random.randn(200) - 2 x2 = np.random.ra

    1热度

    1回答

    我试图用plotly绘制大量数据点(2mm-3mm)的东西。 当我运行 py.iplot(fig, filename='test plot') 我收到以下错误: Woah there! Look at all those points! Due to browser limitations, the Plotly SVG drawing functions have a hard time g

    3热度

    2回答

    我在plotly以下吧,我想: 得到x轴标题轴标签,好让他们不重叠 使Y轴标签更大 带来巴值的吧 顶部 我的代码是: library(plotly) plot_ly(x = c('100-200','200-400', '400-600','600-800','800- 1000'), y = c(12261,29637,17469,11233,17043), name = "dd",

    8热度

    2回答

    我跟着这里的指导: https://plot.ly/python/filled-chord-diagram/ 我生成此: 在引导,我跟着ribbon_info代码将hoverinfo添加到连接的色带,但没有显示。我可以得到hoverinfo只显示功能区结束。任何人都可以看到我要去哪里吗?是 ribbon_info=[] for k in range(L): sigma=idx_sor

    0热度

    1回答

    我有一个很少数据的线图。像这样的位: plot_ly(x = c(-2, 0, 1.5),y = c(-2, 1, 2.2), type = 'scatter' ,mode = 'lines+markers') %>% add_trace(x=c(-1,0.4,2.5),y=c(2, 0, -1),type='scatter',mode='lines+markers') 我想知道是否plot

    0热度

    1回答

    我是一个新手,情节严重,我正在使用条形图示例。我想要做的是让条形图从右向左运行。这是一个链接到我的jsfiddle。 https://jsfiddle.net/ksaluja/w0cx3sw1/1/ 目前,它会从右到左的默认方式。谢谢! 的index.html <div id="tester" style="width:600px;height:250px;"></div> scripts.j

    1热度

    1回答

    我解决了我的own question here。然而,我的代码有一个巨大的缺陷:当我运行应用程序,Shiny只显示我复选框。在R-Studio中,它显示弹出窗口中的复选框和R-Studio-Viewer选项卡中的图。 我试过把这两个元素放在一个sidebarLayout-面板中。但无济于事。有什么办法可以做到这一点? library(shiny) library(plotly) library

    0热度

    1回答

    我有一个Plotly堆积条形图。我想换条的颜色,所以我有红色和深蓝色,而不是默认的颜色,你看到下面 我下面的代码。我尝试使用函数,但它将整个绘图转换为单一颜色。任何帮助,将不胜感激。 pie_subsegment_split %>% plot_ly(x = ~Segment, y = ~Not*100, type = 'bar', name = 'Not') %>% add_trace(y =

    1热度

    2回答

    好奇如何使用ggplot或plotly库函数来绘制这个dotplot。还要在各个点上标记mpg值。 # Dotplot: Grouped Sorted and Colored # Sort by mpg, group and color by cylinder x <- mtcars[order(mtcars$mpg),] # sort by mpg x$cyl <- factor(x$cy

    0热度

    1回答

    我有一些实时twitter数据,我正在使用这些数据来查找情感分析。我写的情感分析代码,并获得准确的结果,像这样的: senti_value Sentiment_type 1 0.00 Neutral 2 -0.75 Negative 3 0.00 Neutral 4 -0.25 Negative 5 -3.25 Negative 6 -0.35 Ne