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.
Questions tagged [htmlwidgets]
422 questions
0
votes
0 answers
how to increase the resolution of leaflet maps in R Shiny
I am struggling how to save leaflet maps in a Shiny app in a high resolution.
In the following code a leaflet map is made, and the map can be downloaded by pressing the 'download'…

WJH
- 539
- 5
- 14
0
votes
1 answer
Plot two data.tree objects side by side
I am using the data.tree package to create some trees.
library(data.tree)
library(DiagrammeR)
acme <- Node$new("Acme Inc.")
accounting <- acme$AddChild("Accounting")
software <- accounting$AddChild("New Software")
standards <-…

User2321
- 2,952
- 23
- 46
0
votes
2 answers
htmlwidgets::saveWidget produces html file with default style="padding: 40px"
By default, the html document created by the htmlwidgets::saveWidget which use htmltools (for example, htmlwidgets::saveWidget (reactable(iris))) has the following attributes in the body tag: css
r
padding
htmlwidgets
htmltools

boris
- 13
- 5
0
votes
1 answer
Change rectangles to circles for sankeyNetwork in networkd3
I'm having issues changing the rectangles in sankeyNetwork into circles in the networkd3 package for R. So far my onrender js code only removes the rectangles, not sure why the circles aren't being added instead.
Here's my…

Raymond Sibaja
- 3
- 2
0
votes
1 answer
how to fix incorrect color for nodes in networkD3 (sankeyNetwork)?
Hi and thanks for reading me
Im workin with a Sankey plot with the networkD3 package and im trying to customize the colors for each node, but im getting an entire column of "source" with the same color and I want to get diferent colors with an…

Jorge Hernández
- 567
- 4
- 9
0
votes
1 answer
Stripe effect in formattable(), shadow in light gray every other row. R
I was wondering, does anyone know how to achieve the "stripe" style seen in kableExtra? That is to shadow in light gray odd rows but not even rows? Something like the following picture:
Given my code using formattable, I am going to export the…

JK Lambert
- 333
- 1
- 6
0
votes
1 answer
Bold text in R using networkD3 package
I have built Sankey diagrams using the networkd3 package in r and am wondering if there is a way to bold the text used as labels of the nodes. I have done some research and haven't found anything directly related to networkD3 in R.

ttucker34
- 13
- 3
0
votes
0 answers
How to Change X-Axis Label in ChromoMap?
I am new to R and I have been using chromoMap library in R to visualize annotation plots and visualizing the feature-associated data. It's a great library and produces great charts. However, I was not able to find any option for changing the x-axis…

Hamid_UMB
- 317
- 4
- 16
0
votes
2 answers
How can I add a dollar sign to link and node labels?
I want to add a dollar sign to the link and node labels in a networkD3 Sankey plot. A similar question has be asked and answered here:
Link value label thousands separator
In the above link, CJ rewrites the link titles with htmlwidgets::onRender to…

MilkManSteve
- 15
- 4
0
votes
0 answers
Display Plotly Plot in R Shiny Without a Render Function
I want to display a Plotly plot with HTML without using a render function I have looked into htmltools and htmlwidgets but have not found a solution. I am able to render a Plotly plot without a render function with the insertUI function like…

Pascal Schmidt
- 223
- 2
- 12
0
votes
2 answers
R Obtaining a self-contained html file for tag list
I hope somebody can help me with this. I have a package that uses htmltools and reactable to produce html reports for some operations, for example:
columns_def <- list(
ProjectID = reactable::colDef(
align = "right",
style =…

IfLoveWasBornToDie92
- 29
- 6
0
votes
1 answer
Zero-index problem and filtering issue in shiny
I am trying to build a shiny app with an interactive network, but I am stuck with two problems.
Firstly, I cannot figure out why I do have problem with zero indexing, because I used the solution to fix it, but it does not work properly. On the other…

Oksana
- 9
- 5
0
votes
1 answer
How to adjust node size based on value in diagonalNetwork of networkD3
I am new to using the networkd3 package and I am trying to understand how to adjust the layout manually. As an example I have the following layout
library(networkD3)
library(tidyverse)
library(data.tree)
library(htmlwidgets)
…

User2321
- 2,952
- 23
- 46
0
votes
1 answer
Is there a way to set default vertical alignment of networkd3 Sankey?
I am using the networkd3 package in R to construct Sankey networks. I tried looking through other questions but could not find a related one. By default the nodes vertically align at the top of the view window, like so:
If possible, I want to align…

Josh C
- 43
- 7
0
votes
1 answer
Rmarkdown to html on windows: DT::datatable not rendering (suspect pandoc issue)
Fails to render with pandoc.exe: \\: openBinaryFile: does not exist
rmarkdown::pandoc_available() is TRUE
Anyone ever seen anything like this?
Also, fwiw, there is not much CSS going on. No boxes around code chunks, etc.

Derek Fulton
- 306
- 1
- 14