https://github.com/yusuzech/r2d3-graphs
Make graphs in D3 and create templates for r2d3 package
https://github.com/yusuzech/r2d3-graphs
Last synced: 4 months ago
JSON representation
Make graphs in D3 and create templates for r2d3 package
- Host: GitHub
- URL: https://github.com/yusuzech/r2d3-graphs
- Owner: yusuzech
- Created: 2019-07-10T16:50:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T04:16:07.000Z (over 5 years ago)
- Last Synced: 2024-08-13T07:14:16.431Z (8 months ago)
- Language: R
- Size: 27.3 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - yusuzech/r2d3-graphs - Make graphs in D3 and create templates for r2d3 package (R)
README
---
title: "r2d3 Snippets"
output: github_document
---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(r2d3)
``````{r}
library(r2d3)
```# Examples of r2d3-snippets
**You can view all following examples on this shiny app:**
https://yifyan-yusuzech.shinyapps.io/yusuzech-r2d3-app/
## D3MatrixPlot
Create a plot from a matrix with only 0s and 1s. Can be used to create something like Conway's Game of Life. Graphs attributes can be provided in options. All available ones can be seen in `D3MatrixPlot.js`.
Available Parameters are:
SVG Margins, Width, Height and Background Color:
> "margin.top","margin.bottom", "margin.left","margin.right", "svg.fix", "svg.aspectRatio", "svg.background"
Rectangle Fill and Margin:
>"rect.fill", "rect.margin"
