Generating some data first:
# R version 3.3.0
require(data.table) ## 1.9.7, commit 2433, github
require(dplyr) ## devel, commit 3189, github
library(ggplot2) | |
library(datasauRus) | |
library(gganimate) | |
p <- ggplot(datasaurus_dozen, aes(x = x, y = y, frame = dataset)) + | |
geom_point() + | |
theme(legend.position = "none") | |
gganimate(p, title_frame = FALSE) |
# Using concaveman in R using V8 | |
concaveman <- function(d){ | |
library(V8) | |
ctx <- v8() | |
ctx$source('https://www.mapbox.com/bites/00222/concaveman-bundle.js') | |
jscode <- sprintf( | |
"var points = %s;var polygon = concaveman(points);", | |
jsonlite::toJSON(d, dataframe = 'values') | |
) | |
ctx$eval(jscode) |
A minimal demonstration of how to create an HTML bar chart with D3. Fork this template to create your own chart.
A Pen by Ramnath Vaidyanathan on CodePen.
license: mit |
var mobx = require('mobx'); | |
var _ = require('lodash'); | |
/* | |
MOBX in VANILLA ES5 | |
Notes are based on Matt Ruby's Open Source North Talk: | |
Practical React with MobX | |
https://www.youtube.com/watch?v=XGwuM_u7UeQ |
A Pen by Ramnath Vaidyanathan on CodePen.
made with esnextbin
made with esnextbin