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
3 answers
R Shiny HTMLWidget for interactive 3D-histograms
I would like to include a 3D dynamic (i.e. one can change its perspective just by moving the plot) histogram widget in a R Shiny application.
Unfortunately I didn't find any until now.
So far the results of my searches: with threejs (e.g. here on…

Olivier7121
- 151
- 1
- 11
0
votes
0 answers
What's causing, "Error: pandoc document conversion failed with error 127" when trying to export radialnetwork to HTML?
I am trying to export a networkD3 plot, a radialnetwork plot, to an HTML file in RStudio, but am unable to export the plot. Is anyone else getting an R code execution error when trying to export as HTML? I don't know what is causing this issue.
…

Aylin
- 55
- 7
0
votes
0 answers
Error in eval(lhs, parent, parent) : object 'countries_sf' not found >
When I tried to run the code, for some reason, one of the objects "not found".
I tried to chance the name, run again, but it's always the same error.
The code:
countries_sf <- countries110 %>%
st_as_sf()
pop_palette <- colorNumeric("viridis",
…

jessica felix
- 1
- 1
0
votes
1 answer
networkD3 package: show node names of all connected nodes when hovering over
Using the forceNetwork function of the networkD3 package, it is possible to create an interactive network graph that can show the node names when hovering over them.
I am trying to create a graph that not only shows the node where the mouse is…

Fred
- 410
- 3
- 12
0
votes
1 answer
Sankey Chart with networkD3 - Creating Links
I am trying to develop a sankey chart to visualize a customer journey on a website. My data has two fields: Session_ID and Page_Name. I set a limit to page depth to have a maximum of 6 pages per session.
I was able to create the nodes, but not able…

user3252148
- 153
- 1
- 3
- 11
0
votes
2 answers
How to save simpleNetwork output from networkD3 in PDF/JPEG/TIFF format?
I am new to Rstudio and have just plotted a network diagram using simpleNetwork in the networkD3 package. I am looking to save the output in PDF/JPEG/TIFF format for my PhD thesis, however, most suggestions are with respect to saving it on a website…

mg19922611
- 1
- 2
0
votes
1 answer
networkD3 Sankey diagram doesn't appear in the viewer, no error message
This is code for a sankey diagram made with networkd3. I've had success with Sankeys before - I'm aiming to create something like this https://susan-wilson.shinyapps.io/2016FederalElectionPreferences/ (although it will be a little more wild because…

Susan
- 101
- 8
0
votes
1 answer
Is there a way to have leaflet widget shapes clickable with knitting to static HTML output in R?
I am trying to create a Rmarkdown file which I can eventually knit to a HTML document for sharing.
The goal is to have a clickable map (example provided) where the user can click map shapes and then add those choices to a summary data table. I also…

shedberg
- 1
0
votes
1 answer
networkD3 and Shiny - filter by number of nodes
I have this shiny app that generates a network graph from a df.
library(shiny)
library(dplyr)
library(tibble)
library(networkD3)
ui <- fluidPage(
sidebarPanel(
fluidRow(selectInput("nos","Mínimo de orientações",c(1:10),selected=c(1)))
),
…

Lucca Ramalho
- 573
- 1
- 6
- 16
0
votes
0 answers
Xaringan plotly not rendering: A website is slowing down your browser what would you like to do
I'm trying to debug an OS specific error with xaringan (an issue with plotly) . I was able to create the following xaringan manhattan plot with the manhattanly package on a Linux and Mac OS at work earlier today but it's not rendering on my Windows…

Matthew J. Oldach
- 618
- 8
- 24
0
votes
1 answer
Is Shiny-Server Necessary to Run HTMLWidget?
I have a blog that uses Netlify. So, if I want to embed an interactive element, I believe I need to use an iframe.
The interactive element I wish to use is a simple image carousel.
library("slickR")
img <- c("img1.png",
"img2.png",
…

ixodid
- 2,180
- 1
- 19
- 46
0
votes
1 answer
specify color scheme for n number of nodes in networkD3 in R
I know that in networkD3 you can specify the color of different nodes by putting them in groups.
Eg.
nodes = data.frame(id = c(0,1,2), name = c("Node 1", "Node 2", "Node 3"), group = c("1","2","3"))
JS('d3.scaleOrdinal().domain(["1", "2",…

Tillie
- 33
- 4
0
votes
0 answers
Save r markdown to standalone html with interactive html widgets?
The support documents for html-widgets suggest that it is possible to save a stand alone html page from an r markdown document with interactive html components intact, without relying on shiny. The documentation is located here…

Sardine
- 1
- 1
0
votes
2 answers
Remove lat and long columns in table when using crosstalk to link a leaflet map and a data table
I'd like to link a leaflet map and a data table created by DT library by using crosstalk instead of shiny. So when I click any record on table side, the circle in the map will be highlighted. I know the lat and long are required to generate the…

Jojo
- 1
- 1
0
votes
1 answer
Crosstalk and Aggregated Data
I am trying to create a flexdashboard that includes a Data Table along with Crosstalk Filters. My data includes similar data that I would like to aggregate to find the means of certain categories according to filter criteria. Basically, the table…

Nathan Wells
- 9
- 2