Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
118 views

I'm trying to use the R packages crosstalk and plotly (along with tidyverse packages) to create a panels that displays multiple data sets together. There's two data frames that I want to put into one ...
cgmil's user avatar
  • 460
1 vote
0 answers
45 views

My goal here is to raise awareness of a likely bug in R's (very useful) plotly package: Plots can be animated by setting the frame aesthetic in ggplot() (see Animating Views) then sending the ...
David Lovell's user avatar
4 votes
1 answer
134 views

I have been working on a shiny app for some time, last week I updated all of my packages when I downloaded a new version of RStudio. All of a sudden, existing shiny themes will work outside of ...
Rrrrrrr's user avatar
  • 43
4 votes
2 answers
180 views

I'm working on a project using ggplotly() and am having trouble formatting my hover text. Specifically, I'm using the text aesthetic to format my tooltip, which works great. The problem I'm running ...
Cameron Costa's user avatar
1 vote
1 answer
169 views

I was trying to build a spaghetti plot: I have longitudinal data for several ID, and, due to some functionalities such has dropdown menus and legend filters, I decided to use plotly instead of ggplot2....
Ayoubinsky's user avatar
3 votes
1 answer
112 views

My interactive dashboard where multiple Plotly objects including maps are displayed using nested subplot() in R: library(digest) library(sf) library(jsonlite) library(plotly) library(ggplot2) library(...
User_NAHRUB's user avatar
1 vote
0 answers
71 views

I'm creating a document with a lot of ggplotly objects. This returns in a big file size. Apparently we could use the partial_bundle function to reduce the file size of plotly object. Unfortunately ...
Quinten's user avatar
  • 42.8k
0 votes
1 answer
88 views

I'm trying to create multiple plotly charts inside a Quarto panel-tabset using a loop or function, but the charts either don't render at all or appear outside the tabset structure. Here's my code: --- ...
fahmy's user avatar
  • 3,672
1 vote
1 answer
128 views

I'm trying to use ggplotly in a nested tab construction in Quarto from one of my previous questions, Nested tabs in Quarto document. Somehow when we use ggplotly the plot does not show op in the ...
Quinten's user avatar
  • 42.8k
2 votes
1 answer
133 views

I want to output a 2-dimensional heatmap ​​using ggplotly so that I can check their values by hovering the mouse over them. I entered the following sample dataframe and commands with geom_bin_2d() to ...
user250525's user avatar
1 vote
1 answer
120 views

I am trying to create a simple map using ggplotly: I want only the western european regions to be coloured in green, and to do this I have created the binary variable weur. library(rnaturalearth) ...
Luigi's user avatar
  • 492
1 vote
2 answers
84 views

I have problem using ggplotly with facets, subplot is a pain to use. Consider the following graph : library(ggplot2) library(dplyr) g <- diamonds %>% sample_n(1000) %>% mutate(cut = as....
Malta's user avatar
  • 2,013
1 vote
1 answer
78 views

I'm having an issue with plotly_hover option when trying to display information from the hover in another output in a shiny app. I'm working with a plotly made from a ggplot that uses color aesthetic. ...
Honestiore's user avatar
0 votes
1 answer
51 views

I have the following example dataframe that I am trying to create a plotly with, it was working until I defined the shapes to be different df <- tibble::tibble( Year = c("2018", "...
user19779614's user avatar
5 votes
2 answers
165 views

I have a ggplot barplot with an errorbar, which I'm putting through ggplotly. My preference is to only show the top of the errorbar. In ggplot2, I simply specify the y_min of the errorbar to be the ...
user2602640's user avatar
  • 1,097
2 votes
1 answer
78 views

I'm creating a barplot with error bars using ggplotly. The transition into plotly changes the width and thickness of the error bars, and I would like to format them to my preference. I saw that I'm ...
user2602640's user avatar
  • 1,097
2 votes
1 answer
154 views

I'm using ggplotly to make my plots interactive inside a Shiny app. I need to rotate the x-axis labels by 45 degrees. This works fine, but only until I have facets. If my plot has facets, then only ...
user2602640's user avatar
  • 1,097
0 votes
0 answers
43 views

Given: library(ggplot2) library(gridExtra) library(plotly) library(colorRamps) d <- data.frame(x=sample(1:10)/10, y=sample(1:10)/10, z=sample(1:10)/10, c=sample(LETTERS[1:5]...
user2955884's user avatar
0 votes
1 answer
41 views

I cannot understand why my ggplot first bar label is half hidden in the horizontal bar chart below. I don't want to reduce the size of the labels because they would look too small. I tried adding a ...
paolotroia's user avatar
2 votes
1 answer
77 views

I get an error message when trying to implement geom_xspline with plotly in R. I get the desired graph in ggplot2 but the plot cannot be converted to a plotly object when using the ggplotly function. ...
Marine de Franciosi's user avatar
0 votes
1 answer
94 views

When I convert my ggplot stacked bar chart to ggplotly, there are two issues that I can't solve: the text labels at the end of the bars change position unexpectedly. I would like them to keep their ...
paolotroia's user avatar
0 votes
0 answers
25 views

Apologies for any mistakes, I'm new to R. I'm trying to create an animated plot using ggplot2 and plotly in R, but I'm encountering an error that I can't resolve. Here's my code: ggplot(...
8711hjn's user avatar
0 votes
1 answer
82 views

So I have a plot which I'm trying to have the points colored by type1 and the shape shaped by note1 etc. For some reason, the plot is concatenating the dang things into a key like this: type1 note1 - -...
SqueakyBeak's user avatar
1 vote
0 answers
50 views

This question is kind of a follow-up to this one: ggplotly dropdown menu default graph incorrect I am opening a new one as it seems the more correct thing to do. I need to perform a modification to my ...
goingdeep's user avatar
  • 121
0 votes
0 answers
69 views

I am working on a data visualization in R Shiny where I aim to display the spread of avg_speed for each hour of the day using boxplots. My goal is to represent each road as a separate boxplot within ...
Kirthana's user avatar
1 vote
1 answer
105 views

I'm trying to reverse the color scale for a 2d Density plot so that low density is light and high density is dark (the default is the other way around). Unfortunately, I get an error when I use ...
Thomas Philips's user avatar
1 vote
1 answer
77 views

structure(list(Indicator = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L,...
goingdeep's user avatar
  • 121
0 votes
0 answers
28 views

I have a code that works great, but I would lik it to be interractive. The problem is when I apply ggplotly it dosent print on the html document. This piece of code works great: ### ---- Display the ...
Francisco Augusto Varela Aguir's user avatar
1 vote
1 answer
105 views

I'm trying to get a sensible X-axis in a ggplotly with class POSIXct, and maintain sensibility when zooming. Calling ggplotly directly on the ggplot object results in a plot in which the x-axis does ...
Eric Krantz's user avatar
  • 2,339
1 vote
1 answer
96 views

Zooming in to a ggplotly far enough makes the axes disappear. How do I autorange them as the plot is zoomed? library(ggplot2) library(plotly) myplot <- ggplot(cars, aes(speed, dist)) + ...
Eric Krantz's user avatar
  • 2,339
0 votes
1 answer
100 views

I'm creating a group of bar charts in R using facet_grid and because some of my grid labels are long, I'm increasing the margins and rotating the labels so they fit using margin = margin(15, 10, 15, ...
Andrew Wetzel's user avatar
1 vote
2 answers
491 views

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
1 vote
1 answer
113 views

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,901
0 votes
0 answers
149 views

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
94 views

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
182 views

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
224 views

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
30 views

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
  • 179
0 votes
1 answer
115 views

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
37 views

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,546
1 vote
1 answer
34 views

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,546
0 votes
1 answer
47 views

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
763 views

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
1 vote
1 answer
47 views

I want to do an app in shiny with a selectInput to select a Doctor, which generates a column-plot for different lymphoma types (lymphoma_types var, character) for this doctor. Then, I want a second ...
Ivan Dlouhy's user avatar
1 vote
1 answer
150 views

I am creating a plot using ggplot package in R, however I need a plotly object at the end, therefore I am applying the ggplotly function. Unfortunately, this step changes the y-position of my bar ...
Afke Politiek's user avatar
0 votes
0 answers
38 views

the legend doesn't appear in ggplotly when I use guide in ggplot : library(plotly) library(ggplot2) library(dplyr) diamonds %>% group_by(cut,color) %>% summarise(price = mean(price)) %>%...
Malta's user avatar
  • 2,013
0 votes
2 answers
131 views

I am generating this chart using this code in R. ggplotly( gplot(data=ComercioLineChart,aes(x=ComercioLineChart$Ano,y=ComercioLineChart$`Quantidade (L)`,color=ComercioLineChart$Categoria)) + ...
Phillip S's user avatar
0 votes
1 answer
201 views

I would like to have some rotated tick labels when using ggplotly. Unfortunately, after converting to ggplotly the labels are rotated back to normal. Here is some reproducible example: library(plotly) ...
Quinten's user avatar
  • 42.8k
2 votes
1 answer
97 views

My R Shiny app currently generates dynamic plots and organizes them into categories. When input$regression is true, all output$continuous_plots are rerendered to include a regression line. These plots ...
Chris Trivino's user avatar
1 vote
0 answers
104 views

My question: I am wondering about embedding a plotly bar graph in a website. The graph would pull data from an API call, cached (so it calls a maximum once a minute). I'm assuming this is possible, ...
Rine's user avatar
  • 11

1
2 3 4 5
18