Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst
man
vignettes
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README.md
d3_example.js

README.md

flexwidget

The goal of flexwidget is to make it easy to make custom javascript visualizations in R.

This is just an experiment at the moment, will see if it is useful!

Example

A widget that takes the input data, multiplies it by 2, and puts it in an h1 div:

flexwidget(data = 2,
  js_code = "function(data){document.getElementById('mydiv').textContent = data * 2}",
  inner_html = htmltools::tags$h1(id = "mydiv"),
  height = "50px")

4

See vignette for visualization example.

You can’t perform that action at this time.