Questions tagged [crosstalk]

Use this tag for asking question concerning the Crosstalk R package and cross-widget interactions with htmlwidgets.

Crosstalk

Crosstalk is a package for R that enhances the htmlwidgets package. It extends htmlwidgets with a set of classes, functions, and conventions for implementing cross-widget interactions.

Ressources

91 questions
0
votes
0 answers

Crosstalk Output Variables R

Looking for some specific help with Crosstalk without use of Shiny. Two things; First is get a slider select with one value instead of a range. Second is how to extract a selection from a filter_ object as a output variable. Below is some code for…
0
votes
1 answer

Show empty table before filtering with crosstalk

I would like to filter a reactable with crosstalk. Let's say I have the following Rmd-file: --- title: "blabla" output: flexdashboard::flex_dashboard: orientation: rows social: menu source_code: embed theme:…
mharinga
  • 1,708
  • 10
  • 23
0
votes
1 answer

render image from disk in R markdown / Dashboard on user selection dropdown

I have a folder full of charts, generated from a previous step. All of them are PNG files. I want to be able to choose anyone using Flexdashboard and load it. As no shiny or server service is needed I tried Crosstalk…
Forge
  • 1,587
  • 1
  • 15
  • 36
0
votes
1 answer

Problem with using barplot and scatter plot in leaflet

I am trying to have both a scatter plot and a barplot in leaflet. The datetable, the leaflet and the scatter plot work fine. The problem is the barplot does not work when in leaflet we select some points in map as shown in the following figure. Why…
Masoud
  • 535
  • 3
  • 19
0
votes
1 answer

Plotly in R: Piechart subplot changing domains when linked to choropleth with crosstalk

Is there a way to keep a piechart subplot from changing its domain with Plotly in R using crosstalk? The idea here is to have a choropleth map on the left side and a piechart on the right side. When I click on one country on the map, the piechart…
Gabef
  • 1
0
votes
1 answer

Subset dataset based on crosstalk value in a shiny app

I use crosstalk in order to be able to click on a bar in the barplot and subset the table below based on the Abcd. For some reason if I press on a bar I get only one row of the dataset while I should get all of them. If I select all the bars again…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Select multiple values and unselect certain values of dataframe using crosstalk

I have the shiny app below in which I use crosstalk package to create interaction between the chart and the table. I would like to ask if it is possible to select more than one bars at the same time in order to bring back the table to its initial…
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
0 answers

Interactive variable in Rmd

How do I make a textbox filter in a generated static HTML document (NOT SHINY or another WEB format), so that the user can drive a value into the filter, and this value can be substituted into the text?
Avraam
  • 146
  • 1
  • 10
0
votes
0 answers

Set dynamic axis limits with Crosstalk

I have created a Shiny App with a range slider that dynamically adjusts the limits of the x axis. I have done this creating a slider called my_slider in sliderInput() in the ui, and then writing the command scale_x_date(limits =…
cholo.trem
  • 314
  • 2
  • 9
0
votes
1 answer

Crosstalk: Change Plotly Graph on Startup

I am trying to change a plotly graph via crosstalk in my Rmarkdown doc. This works in principle fine, however, I want to set the dropdown to the first element on startup via JavaScript. This change, however, does not update the graph. If I run the…
thothal
  • 16,690
  • 3
  • 36
  • 71
0
votes
1 answer

Altering code behind crosstalk's filter_slider() function

I am trying to modify the appearance of a crosstalk filter slider by changing its colour and font. There is no built-in option to do this within the filter_slider() function, so I looked up the code behind the function to see if it specifies the…
cholo.trem
  • 314
  • 2
  • 9
0
votes
1 answer

Responsive `addWebGLHeatmap` with crosstalk and leaflet in

I make a leaflet map with a responsive heatmap using addHeatmap. Unfortunately, this kind of tool it is not enough useful because two main problems: 1) The heatmap is redrawed with each new level of zoom and 2) you can not make the heatmap and the…
0
votes
0 answers

I can't get brushing / linking to work with crosstalk and plotly for a 2 subplots when 1 subplot is an aggregate graph

I can't for the life of me figure out why I can't get brushing to work for my two plots (p1,p2) below. What I'm expecting: If I click the a specific diamond 'cut in the bar graph on the left, the corresponding cut should be highlighted in the…
0
votes
0 answers

R plotly: highlight_key if the key field matches an element of a different field of the selected point

I would like to highlight points in an R plot_ly scatter based on whether the key column matches one of the elements of a query column of the data-point hovered-over by the user. I know you can set up non-reciprocal, hierarchical highlighting…
Stu2
  • 1
  • 2
0
votes
0 answers

Crosstalk links broken by second Leaflet addCircleMarkers call

I am working with multivariant data linking Leaflet and d3scatter plots. It works well for one variable. If I try to include a second variable in Leaflet by a second addCircleMarkers and addLayersControl then the sharedData links break, the…
paulc
  • 1
  • 1