Questions tagged [htmlwidgets]

Use the this tag for questions regarding the htmlwidgets for R JavaScript visualization library. For questions regarding generic HTML widgets, use the html and widget tags.

422 questions
0
votes
1 answer

htmlwidget draws a new plot when I update a shiny input?

I'm creating my first package using htmlwidgetsand I'm having some troubles integrating the output with shiny. When I update an input my widget draws a new plot below the original one instead of just updating the original plot. For example: This my…
Ignacio
  • 7,646
  • 16
  • 60
  • 113
0
votes
1 answer

Cannot snapshot Openstreetmap in leaflet using savewidget/webshot

I have the need to make a snapshot of a userdefined map using openstreet map in leaflet. I am using saveWidget to save a html file and then webshot to take a snap of that file. It works perfectly with Esri.WorldStreetMap and others. However, I…
0
votes
1 answer

Reduce Font Size of datatable in a Flexdashboard

I'm working on a shiny flexdashboard, and one of the elements is a datatable with a lot of columns. Currently the columns are so many that they exceed the width of the app. Instead of adding a scroll bar I would prefer to simply reduce the font…
Rafael Velásquez
  • 337
  • 1
  • 3
  • 14
0
votes
1 answer

How to control node labels in Sankey diagram

I have a Sankey diagram I'm creating in R. It produces the diagram but the node names are placed on the left of the nodes for the right side nodes. I would like all names to be on the right so the real names (which are longer) don't overlap with…
VPMACH
  • 37
  • 1
  • 6
0
votes
0 answers

D3partitionROutput non-reactive to changing output

D3partitionR has some fantastic visualisations for hierarchical and sequential data, however it seems to have a major flaw in Shiny. The D3partitionROutput function (& renderD3partitionR) don't update the plotted object when the output object is…
0
votes
1 answer

htmlwidgets and shiny apps can't be viewed on E-Books Output formats in bookdown

At this moment is not possible to see neither htmlwidgets nor shiny apps on E-Books output formats in bookdown. Even if I download the example: bookdown: Authoring Books and Technical Documents with R Markdown, I am not be able to see a screenshot…
0
votes
1 answer

Combining netword3D and mermaid in Rmarkdown messes up rendering

I would like to include two htmlwidgets in the same Rmarkdown document - a mermaid flowchart from the DiagrammeR package and a network3D graph. If I include both in my document then none of them renders but if I only include one of them then it will…
ekstroem
  • 5,957
  • 3
  • 22
  • 48
0
votes
1 answer

networkD3 conflict with rCharts

I have created a fairly large (multi-page) flexdashboard that includes different htmlwidgets (plotly, highcharts, leaflet, etc). In order to avoid conflict between rCharts and other htmlwidgets, I included the javascript libraries mannually,…
Prometheus
  • 1,977
  • 3
  • 30
  • 57
0
votes
1 answer

HTMLWidget: Shiny app run well in Rstudio but Not on Shiny-Server

Recently I have written a html widget to use a javascript file for venn diagram plotting. In RStudio the app works fine so I didn’t realize so far that there is an issue using the app on the shiny server. If I run the app in with Shiny in RStudio no…
cpeikert
  • 31
  • 5
0
votes
1 answer

How to extract selected data from interactive htmlwidget plot

I am trying to figure out a way to extract data from a selection of an interactive plot in Shiny. I build a parallel coordinates plot using a package found at https://github.com/timelyportfolio/parcoords which builds a parcoords chart using…
Stu
  • 1,543
  • 3
  • 17
  • 31
0
votes
1 answer

Shiny actionButton() output in onRender() function of htmlWidgets

My goal is to create a script where initially a blank plotly graph is displayed. If the user clicks on a Shiny actionButton saying "Add points", then points will be added to the plotly graph via the onRender() function of htmlWidgets. This would be…
user2808302
0
votes
2 answers

How can I add a title to a sunburstR graph and export it as .png or .jpeg

I've been looking to create a multilevel pie-chart (or doughnut chart) in R and the best I found was the package sunburstR, which I must say is a very promising tool. The interactive functionality is great - however I don't really need it. I'd like…
Mathieu
  • 67
  • 8
0
votes
0 answers

How to format column of mixed type in html table in R?

Looking for some advice on best way to format table with columns of mixed types, so some are integer, other percentages (with % displayed), others decimal points. Is there a nice way to edit individual cells. Have tried with htmlwidgets version of…
iboboboru
  • 1,112
  • 2
  • 10
  • 21
0
votes
1 answer

Removing old trace and adding new trace each time user interacts in onRender htmlwidgets

I am aiming to make a plot using the onRender() function in the R package htmlwidgets in which a user can click on a point and a thick gray semi-transparent line is drawn. I have the crux of it working as is shown in the code…
user1830307
0
votes
1 answer

Changing line thickness and opacity in scatterplot on onRender() htmlWidgets in R

I am hoping to make a plot using the R package htmlwidgets' onRender() function in which a user can click on a point and a line is drawn. I have the crux of it working right now where a gray line is drawn at its default thickness and probably its…
user1830307