Questions tagged [plotly]

Plotly.js is an open source, high-level, declarative charting library, built on top of d3.js and stack.gl. It ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps. Use [r-plotly] for the R package and [plotly-python] for the Python package.

You can use Plotly to import and analyze data, create beautiful, interactive, browser-based graphs, and then collaborate on your graphs with others. Plotly also has a Python sandbox (NumPy supported), and has APIs for Python, R, MATLAB, Arduino, Julia, Perl, and REST.

You can see more in the gallery.

enter image description here

Resources

13887 questions
4
votes
1 answer

Tutorial: automatically export vector graphic (PDF) from plotly plot

Recently I was wondering whether it was possible to automatically export plots from plotly. Unfortunately plotly's documentation is a joke and the module wants you to pay for a feature as basic as this. In the free version only automatic exports in…
Suppenkasper
  • 845
  • 4
  • 10
  • 29
4
votes
0 answers

How to increase the plotly plot height inside Shiny Rmarkdown

I have the following Rmarkdown document: --- title: "Test" runtime: shiny author: "FOO" date: "11/28/2017" output: html_document --- ```{r echo = FALSE} checkboxInput("rowzscore","Row Z-Score", TRUE) ``` ``` {r echo = FALSE} …
littleworth
  • 4,781
  • 6
  • 42
  • 76
4
votes
2 answers

Converting ggplot object to plotly object creates axis title that overlaps tick values

I had the same issue described in this question: R: ggplot and plotly axis margin won't change but when I implemented the solution, I got the following error: Warning: Ignoring unknown aesthetics: text We recommend that you use the dev version of…
Michael Szczepaniak
  • 1,970
  • 26
  • 35
4
votes
0 answers

Variable opacity in a scatter 3D plotly plot

How to make a scatter3d look like a density plot in 3d? I am trying to set the opacity (or some other variable) in a plot_ly scatter3d plot to use a value per point in the plot, with the values coming from a column in the dataframe. This in order…
Mark
  • 2,789
  • 1
  • 26
  • 66
4
votes
0 answers

Maps and bubbles, transition between years

I am having trouble creating a map with growing and shrinking bubbles with ggplotly. I have never used plotly before, so there might be an obvious solution to this. There's really no need for me to try and describe the problem more than just showing…
shitoushan
  • 458
  • 3
  • 11
4
votes
2 answers

Plotly's fillcolor defaults to half-transparency, want no-transparency

I am trying to build a map in R using plotly. I will share the code required to build the dataframe in a reply to this post. Here is the code I am using to plot the chart: florida %>% group_by(group) %>% plot_ly(x = ~long, y = ~lat, …
Canovice
  • 9,012
  • 22
  • 93
  • 211
4
votes
1 answer

Plotly: Bar and pie charts side by side

I would like to plot a bar and a pie chart side by side using the subplot function in the plotly package in R. However, a big pie chart is plotted in the center of the graph, overlaying the bar plot. Here is a sample code: Animals <- c("giraffes",…
Victor Mayrink
  • 1,064
  • 1
  • 13
  • 24
4
votes
1 answer

plotly - different color scales for multiple surfaces

I am trying to use plotly (4.7.1) with R 3.4.1 to plot two 3D surfaces on the same plot, with two different color scales (variations of blue for one and variations of purple for the other one), and color values derived from z values. When I plot…
4
votes
1 answer

add boxplot significance indicator lines and asterisks in R plot_ly

What is the R plot_ly command to add horizontal significance bars (and stars) to a plotly graph? The answers to "How to draw the boxplot with significant level?" and "Put stars on ggplot barplots and boxplots - to indicate the level of significance…
Kayle Sawyer
  • 549
  • 7
  • 22
4
votes
1 answer

Can't generate plotly interactive plots in Rmarkdown report

I have an Rmarkdown document with a plot made with plotly and would like to generate an html file. It works when I click on Knit to HTML in Rstudio, but not when I run the following on the command line: Rscript -e "require(knitr)" -e…
Paco el Cuqui
  • 183
  • 3
  • 13
4
votes
1 answer

manually set colors per group in barplot ggplot

I need to manually set colors for each group in a barplot. I currently have the fill = time and this is currently determining the colors. We have 5 brands and the values for 2 separate months per brand. I need to group by brand but also need a way…
Matt Peters
  • 41
  • 1
  • 2
4
votes
1 answer

Can you remove the hover-coordinate-lines in Plotly Python Scatter3d

When using Plotly Scatter3D , the default mouse hover-over effect displays a kind of coordinate crosshairs. Is there a way to remove this effect and just show the tooltip?
user3431083
  • 404
  • 5
  • 19
4
votes
1 answer

Plotly axis labels on multiple lines alignment

I'm building a Shiny application with some Plotly horizontal bar charts. Some data labels are pretty long and I want to break them on multiple lines. It works when places
on the place I want to break the line, but alignment of the axis labels…
Dendrobates
  • 3,294
  • 6
  • 37
  • 56
4
votes
1 answer

How does Cufflinks inject methods into Pandas even if imported before?

Cufflinks provides an interface between Panda's DataFrame and plotly iplot in the form of DataFrame.iplot. The first two output examples below do not surprise me, but the third does. Each is run in a new instance of iPython3. import pandas as…
AJ Pryor
  • 53
  • 1
  • 6
4
votes
1 answer

Filter legend in linked views with plotly

I am working on a linked plot (similar to The SharedData plot pipeline from Carson Sievert in plotly for R. The plot shows a legend for one item I currently hover over. However, right now the legend shows two elements, one for the bar chart and one…
1 2 3
99
100