All Projects → bhaskarvk → widgetframe

bhaskarvk / widgetframe

Licence: other
Embed htmlwidgets in Responsive iframe.

Programming Languages

javascript
184084 projects - #8 most used programming language
r
7636 projects

Projects that are alternatives of or similar to widgetframe

Billboarder
📊 R Htmlwidget for billboard.js
Stars: ✭ 159 (+133.82%)
Mutual labels:  htmlwidgets
diffviewer
HTML widget to visually compare files
Stars: ✭ 52 (-23.53%)
Mutual labels:  htmlwidgets
vueR
vue.js for R
Stars: ✭ 131 (+92.65%)
Mutual labels:  htmlwidgets
Sunburstr
R htmlwidget for interactive sunburst plots
Stars: ✭ 177 (+160.29%)
Mutual labels:  htmlwidgets
lineup htmlwidget
HTMLWidget wrapper of LineUp for Visual Analysis of Multi-Attribute Rankings
Stars: ✭ 51 (-25%)
Mutual labels:  htmlwidgets
jsTreeR
A wrapper of the jQuery plugin `jsTree`.
Stars: ✭ 36 (-47.06%)
Mutual labels:  htmlwidgets
Streamgraph
〰️ htmlwidget for creating streamgraph visualizations in R
Stars: ✭ 137 (+101.47%)
Mutual labels:  htmlwidgets
summarywidget
htmlwidget that shows a single summary statistic
Stars: ✭ 25 (-63.24%)
Mutual labels:  htmlwidgets
taucharts
📊 An R htmlwidget interface to the TauCharts javascript library
Stars: ✭ 66 (-2.94%)
Mutual labels:  htmlwidgets
compareBars
Simplify comparative bar charts 📊
Stars: ✭ 28 (-58.82%)
Mutual labels:  htmlwidgets
Reactr
React for R
Stars: ✭ 227 (+233.82%)
Mutual labels:  htmlwidgets
grillade
Grid sytem for shiny apps or rmarkdown and to create htmlwidgets matrix
Stars: ✭ 16 (-76.47%)
Mutual labels:  htmlwidgets
bpmn
BPMN diagrams in R
Stars: ✭ 16 (-76.47%)
Mutual labels:  htmlwidgets
Nomnoml
Sassy 'UML' Diagrams for R
Stars: ✭ 173 (+154.41%)
Mutual labels:  htmlwidgets
learn
RECON learn: a free, open platform for training material on epidemics analysis
Stars: ✭ 33 (-51.47%)
Mutual labels:  htmlwidgets
Explor
Interfaces for Multivariate Analysis in R
Stars: ✭ 157 (+130.88%)
Mutual labels:  htmlwidgets
rAmCharts4
An R interface to amCharts 4
Stars: ✭ 26 (-61.76%)
Mutual labels:  htmlwidgets
toastui
R htmlwidgets for ToastUI libraries: grid, calendar and chart
Stars: ✭ 51 (-25%)
Mutual labels:  htmlwidgets
dataui
data-ui for R
Stars: ✭ 57 (-16.18%)
Mutual labels:  htmlwidgets
spatialwidget
Utility package to convert R data into JSON for use in htmlwidget mapping libraries
Stars: ✭ 17 (-75%)
Mutual labels:  htmlwidgets

Project needs a new home.

Thank you all of you who have used this package and have contributed code/bugs/enhancements over the years. As you may have noticed I haven't been able to make any contributions to this project and others in the last two years. I was hoping to get back to developing/maintaining this package on a regular basis but my current work-life balance does not allow it and I don't see that situation changing anytime soon.

So here is my humble request to the R geospatial community, if anyone wants to take over this project and maintain/develop it for the greater good, I will be more than happy to transfer the project over to your repo. Send me an email at bhaskarvk AT <google's mail domain>. Same offer holds of any of my other R packages that you might be interested in taking over.

Please note that the javascripts being used in the current version are all almost 2 years old and counting and contain various security vulnerabilities. So I don't recommend anyone use this package anymore unless it is taken over and brought up to date by someone else. Until that happens please consider this project as abandonware.


Project Status: Active – The project is being actively developed. Last-changedate License: MIT keybase verified Travis-CI Build Status AppVeyor Build Status minimal R version packageversion CRAN_Status_Badge

widgetframe: htmlwidgets inside responsive iframes.

The goal of widgetframe is to be able to embed widgets inside iframes using NPR's Pymjs library for responsive iframes.

This package provides two functions frameableWidget, and frameWidget. The frameableWidget is used to add extra code to a htmlwidget which allows it to be rendered inside a responsive iframe. The frameWidget returns a htmlwidget which displays content of another htmlwidget inside a responsive iframe.

Current Status


  • Does Not (Yet) Work With
    • Shiny

Installation

Release version

install.packages('widgetframe')

OR development version

if(!require(devtools)) {
  install.packages('devtools')
}
devtools::install_github('bhaskarvk/widgetframe')

Usage

frameableWidget function.

The frameableWidget function should be used when you need a HTML which can be embedded in a CMS system like WordPress/blogger or a static HTML website using the Pymjs library.

library(leaflet)
library(widgetframe)
l <- leaflet() %>% addTiles()
htmlwidgets::saveWidget(frameableWidget(l),'leaflet.html')

The resulting leaflet.html contains the necessary Pym.js Child initialization code and will work inside a regular iFrame or better yet a Pym.js responsive iFrame. It is expected that the site which is going to embed this widget's content has the necessary Pymjs Parent initialization code as described here.

frameWidget function

frameWidget function takes an existing htmlwidget as an argument and returns a new htmlwidget which when rendered, wraps the input htmlwdiget inside a responsive iFrame. This function can be used to knit htmlwidgets such that they are unaffected by the parent HTML file's CSS. This could be useful in bookdown or R Markdown Websites to embed widgets such that they are unaffected by the site's global CSS/JS.

You can use widgetFrame inside your R Markdowns as shown below.

```{r 01}
library(leaflet)
library(widgetframe)
l <- leaflet(height=300) %>% addTiles() %>% setView(0,0,1)
frameWidget(l)
```
```{r 02}
library(dygraphs)
ts <- dygraph(nhtemp, main = "New Haven Temperatures",
              height=250, width='95%')
frameWidget(ts)
```

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].