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
2
votes
3 answers
Collapsible network plot in R
I am trying to implement collapsible network in R based on the blog post more network layouts. However, I am always getting the error of Object not found.…

NinjaR
- 621
- 6
- 22
2
votes
2 answers
Add onclick open hyperlink event to an html widget created in R
I would like to be able to do something like the answer of this but without using shiny. I also want to bind onclick events which open a hyperlink associated with the data point.
I am using the saveWidget function from htmlwidgets and know that I…

N. Maks
- 539
- 3
- 15
2
votes
1 answer
How to plot a directed Graph in R with networkD3?
when I am ploting a directed graph with NetworkD3 , The edges are not directed , how can I fix it ?
an Example :
library(networkD3)
data(MisLinks)
data(MisNodes)
forceNetwork(Links = MisLinks, Nodes = MisNodes,
Source = "source", Target =…

Amir.S
- 719
- 8
- 15
2
votes
0 answers
change sizingPolicy for htmlwidgets without recreating the widget
I'm creating a set of widgets in r using highcharter and need to change the viewer.padding and browser.padding without having to manually adjust each of the saved widgets. Is there a way to accomplish this without recreating the entire highchart…

Claire R.
- 21
- 1
- 4
2
votes
1 answer
ggplotly created object does not dynamically adjust gridlines when zooming in
I'm trying to understand why plotly objects which are converted from ggplot2 objects using the ggplotly function do not dynamically rescale the grid when using plotly's zoom feature on the html widget.
I would like to find a solution to this without…

N. Maks
- 539
- 3
- 15
2
votes
2 answers
Why are plotly-rendered graphs not working on Mozilla
I am getting the following error when trying to open an html document put together with knitr in Mozilla Firefox. The error is a result of the graph element composed with the plotly package.
unknownError: error occurred while processing…

moman822
- 1,904
- 3
- 19
- 33
2
votes
0 answers
Tying an R htmlwidget to a shiny output
I have a working htmlwidget that does prints a matrix as a table and allows editing of that table. The widget is meant to be embedded into a shiny app as a demonstration of contingency tables. All the code is…

richarddmorey
- 976
- 6
- 19
2
votes
2 answers
Using R and plot.ly, how to save multiples htmlwidgets to my html?
I´m starting to play with plot.ly in R and I´m amazed with the possibilities to publish my graphs directly in html using htmlwidgets.
Until now I´m unable to save multiple widgets in the same html.
I have saved multiple widgets in stand-alone htmls…

A. Welle
- 21
- 1
- 3
2
votes
1 answer
Equal column widths on R formattable
I am using the formattable package to make some reports directly from R and I need the columns using the normalize_bar "style" have the same width, so that can compare value between columns.
The following example shows two columns that have very…

faaabyan
- 345
- 4
- 8
2
votes
0 answers
Adding VisNetwork to RMarkdown with Tabs (Visualization Not Appearing)
I want to create an RMarkdown html document. When I create a rmarkdown document with tabs at the top but the visualization doesn't appear in the second tab. Although when I do not have tabs, the visualization is fine. How do I include the…

nak5120
- 4,089
- 4
- 35
- 94
2
votes
1 answer
Adding Color and Hover Options to VisNetwork Igraph
I have been having trouble with this. I can only get one or the other but not both options in one graph. Below is the code and I received a lot of help from @lukeA to get me to this point.
I have the following graph in which I can get the cluster…

nak5120
- 4,089
- 4
- 35
- 94
2
votes
1 answer
No figure output in htmlwidgets in R
I am trying to build a simple htmlwidget that makes a bar graph using D3 and R. I have setup a gitHub with my code and put together a markdown file with the necessary commands to recreate my workflow when creating the widget. I am not sure if I have…

nate
- 1,172
- 1
- 11
- 26
1
vote
1 answer
Move labels to the outside of the Sankey Diagram and order from biggest to smallest in both sides
it's the first time I'm using R so sorry for stupid mistakes. I need to do a Sankey Chart to display flows between cities in a Metropolitan Area, but I am not satisfyied with the how the graph looks. I would like the labels to be outside the Sankey…

Jessica Lima
- 11
- 1
1
vote
0 answers
In R, how to fit a plot made with plot_ly into an html page
I'm building an html page with a plot made with plot_ly and under it I have some buttons connected to the data of the plot.
Here is the layout so far.
I would like to fit the plot fully in the box.
Also, I would like to know why every time I'm…

Patriche Perin
- 81
- 4
1
vote
0 answers
Making Power Bi - R (HTMLwidgets pbiviz based) custom visuals interactive with other Power BI visuals
I have made a pbiviz custom visual using developer tools of Normal distribution curve over a Histogram plot with R - ggplot2 and plotly libraries in a pbiviz.package
The visual works fine. Now I want to add interactivity of the Histogram with other…

user20369300
- 11
- 2