Skip to main content

Questions tagged [ggplotly]

ggplotly is a function which converts a ggplot object into an interactive plotly object. It enables the usage of functions like zoom, hover, playing with the axis, appearing/disappearing group of points.

ggplotly
1 vote
2 answers
57 views

Display all levels in legend of ggplotly object

How do I display all legends in R ggplotly? As of now it only displays the legends for matching data. Here is what I have done so far: library(ggplot2) library(plotly) schoolname <- c("Xavier&...
Suraj Tiwari's user avatar
0 votes
0 answers
36 views

Embedding a GGPlotly into Gatsby page

THE INTRO: I am trying to embed ggplotly graphs into a Gatsby webpage I am learning to create. After arguing back and forth with ChatGPT for a couple hours, I'm seeking out your knowledge. Here is at ...
Logan W.'s user avatar
1 vote
1 answer
35 views

str_wrap is ignored when using ggplotly (but not ggplot)

I want to wrap the text of the legend for the following plot, which works with ggplot: library(tidyverse) library(ggtext) library(plotly) df <- data.frame(xx = c(0, 3), yy = c(0, ...
user63230's user avatar
  • 4,472
0 votes
0 answers
26 views

ggPlotly PCA hover row names

I would really appreciate some help solving this issue with ggplot/ggplotly in R I'm trying to feed into ggplotly() a ggplot made with autoplot(), specifically, a PCA. The goal I have is for plotly to ...
Tech.learner's user avatar
0 votes
0 answers
37 views

Is it possible to export an interactive ggplot (ggplotly) to PowerPoint, whilst maintaining its interactivity?

Today I learned that it is possible to create an interactive ggplot using ggplotly. I managed to export this plot using saveWidget(ggplotly(x), file = "myplot.html"). This works great. ...
Stefanie van den Berg's user avatar
1 vote
0 answers
32 views

How do I prevent ggplotly from altering the label formatting of a ggmosaic facet_grid?

I'm passing a ggplot2 ggmosaic facet_grid to plotly and when I do plotly messes up the formatting of the facet_grid. Plotly overrides the theme() setting in ggplot and adds a legend, replaces the axis ...
inter_naut's user avatar
1 vote
0 answers
116 views

Grouped bar chart using plotly crosstalk

I am using crosstalk to implement a filter to a chart on a quarto dashboard. The graph is a grouped bar chart, showing two values per group. The filter then changes the indicator being observed. The ...
Ben_Kimpton's user avatar
1 vote
1 answer
79 views

plotly comes up blank

This is a new issue I am having with plotly (gglot plot works fine) in Rstudio. Every time I try to make an interactive graph, it comes up blank. There are no error signs at all! Quick examples below ...
cgripley's user avatar
1 vote
0 answers
23 views

ggplotly: add "gravity" to stacked bar charts, so deselecting middle categories will make top categories slide down [duplicate]

I am trying to make a stacked bar chart where 1) the user can select what categories to see AND 2) when the user deselects a category, the remaining categories "align up so they continous". ...
EmilA's user avatar
  • 165
0 votes
1 answer
48 views

How to use facet_wrap or facet_grid to pass random forest autoplot to ggplotly in R

I'm currently running into a bit of trouble trying to tweak the visualizations of my hyperparameter tuning in R. I've built a few tidymodels workflows based on stock market data (obtained via the ...
cdsb's user avatar
  • 3
1 vote
1 answer
28 views

Display bar as whole,value of bar as sum and remove as factor() from hover text

In the plot below I want the bars not to be displayed like they are into pieces. The Total Value to be displayed as whole and not for every piece and the Year to be displayed not as(factor) Year ...
firmo23's user avatar
  • 8,306
1 vote
1 answer
22 views

Set legend position and tooltip text in ggplotly()

In this plot I want to have in my tooltip text Date,Total_Value, Attribute Name and Percentage in separate lines and I see nothing. Also my legend moved from bottom to the right which i do not want. ...
firmo23's user avatar
  • 8,306
0 votes
1 answer
34 views

Y axis position of labels next to vline in a ggplotly facet plot

I'm working with a ggplotly visualization that uses faceting to display data by category. Each facet has a vertical line, and I want to add a label next to it. I'd like the label's y-position to be at ...
kelvinfrog's user avatar
2 votes
1 answer
213 views

ggplotly produces a blank plot

I have having significant difficulty with plotly in R. The code below produces a blank plot, even though calling 'p' without the ggplotly produces a plot. I have uninstalled and reinstalled both R ...
Erik Jensen's user avatar
0 votes
0 answers
34 views

Making an interactive graph on R using ggplotly/Plotly

I am struggling to get my interactive graph to look how I want it to using both ggplotly and Plotly. I've tried various ways, and am stuck (and in a time crunch). When using ggplotly, I expected my ...
Jennifer Herrera's user avatar

15 30 50 per page
1
2 3 4 5
57