All Projects → processing-r → Processing.r

processing-r / Processing.r

Licence: gpl-3.0
R Language Mode in Processing for Creative Coding, created by @gaocegege, maintained by @jeremydouglass

Programming Languages

java
68154 projects - #9 most used programming language
r
7636 projects
processing
702 projects

Projects that are alternatives of or similar to Processing.r

Visdown
Visualisation Markdown
Stars: ✭ 648 (+435.54%)
Mutual labels:  visualisation
Pydata Pandas Workshop
Material for my PyData Jupyter & Pandas Workshops, I'm also available for personal in-house trainings on request
Stars: ✭ 65 (-46.28%)
Mutual labels:  visualisation
Workbase
Grakn Workbase (Knowledge IDE)
Stars: ✭ 106 (-12.4%)
Mutual labels:  visualisation
Js Code To Svg Flowchart
js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.
Stars: ✭ 6,290 (+5098.35%)
Mutual labels:  visualisation
Itunes Graphs
A macOS app to visualise your iTunes library as graphs.
Stars: ✭ 42 (-65.29%)
Mutual labels:  visualisation
Spirit
Atomistic Spin Simulation Framework
Stars: ✭ 67 (-44.63%)
Mutual labels:  visualisation
Ggplot2
An implementation of the Grammar of Graphics in R
Stars: ✭ 5,202 (+4199.17%)
Mutual labels:  visualisation
Misp Maltego
Set of Maltego transforms to inferface with a MISP Threat Sharing instance, and also to explore the whole MITRE ATT&CK dataset.
Stars: ✭ 112 (-7.44%)
Mutual labels:  visualisation
Ff meters
Plug and play component to display LED meters for JUCE audio buffers
Stars: ✭ 60 (-50.41%)
Mutual labels:  visualisation
Dyno
Inferring, interpreting and visualising trajectories using a streamlined set of packages 🦕
Stars: ✭ 93 (-23.14%)
Mutual labels:  visualisation
Cytoscape.js
Graph theory (network) library for visualisation and analysis
Stars: ✭ 8,107 (+6600%)
Mutual labels:  visualisation
Globe4r
🌎 Interactive globe visualisations
Stars: ✭ 41 (-66.12%)
Mutual labels:  visualisation
Influxgraph
Graphite InfluxDB backend. InfluxDB storage finder / plugin for Graphite API.
Stars: ✭ 87 (-28.1%)
Mutual labels:  visualisation
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (+454.55%)
Mutual labels:  visualisation
Any Angle Pathfinding
A collection of algorithms used for any-angle pathfinding with visualisations.
Stars: ✭ 107 (-11.57%)
Mutual labels:  visualisation
React Graph Vis
A react component to render nice graphs using vis.js
Stars: ✭ 629 (+419.83%)
Mutual labels:  visualisation
Graphia
A visualisation tool for the creation and analysis of graphs
Stars: ✭ 67 (-44.63%)
Mutual labels:  visualisation
Blobtools
Modular command-line solution for visualisation, quality control and taxonomic partitioning of genome datasets
Stars: ✭ 114 (-5.79%)
Mutual labels:  visualisation
Ob Analytics
R package intended for visualisation, analysis and reconstruction of limit order book data
Stars: ✭ 110 (-9.09%)
Mutual labels:  visualisation
Glosm
3D OpenStreetMap renderer
Stars: ✭ 88 (-27.27%)
Mutual labels:  visualisation

logo

Processing.R enables users to write Processing sketches in R.

Current Maintainer: @jeremydouglass from U. California Santa Barbara

Travis CI appveyor Codacy Badge

Overview

Processing.R is a mode for Processing that enables users to write Processing sketches using the R language. The mode can be installed in the Processing Development Environment (PDE). It can also run on the command line as a stand-alone jar.

Processing.R supports:

  1. native R programming and syntax
  2. most Processing built-in functions (draw(), rect(), box(), etc.)
  3. importing select Processing(Java) libraries (e.g. "peasycam")
  4. importing select R Packages (e.g. "foreach")
Editor

Early Development

Processing.R is still in early development -- it is not feature-complete or production-ready. Please try our experimental mode and give us your feedback.

Installation

Processing.R is currently available via PDE > Add Tool > Modes, you could install the mode in PDE.

To build the mode from source, see compilation.md.

Built-in functions in Processing

Processing.R supports most of the Processing functions as described in the Processing reference. Processing.R functions are described on the documentation website:

However, the Processing.R documentation is currently incomplete. Many functions have not been tested or are not accompanied by example sketches. Some reference pages contain materials from Processing.py or Processing(Java) that have not been edited to reflect differences from other Processing modes.

Processing Libraries: importLibrary()

Processing.R supports importing standard Processing(Java) libraries that enrich the functionality of Processing. The function importLibrary() imports new libraries manually. This has been tested with one library: peasycam, the "dead-simple mouse-driven camera for Processing."

Before trying the example code below, first install the corresponding library peasycam -- for example using the PDE Contribution Manager > Library.

settings <- function() {
    importLibrary("peasycam")
    size(200, 200, P3D)
}

setup <- function() {
    cam = PeasyCam$new(processing, 100)
    cam$setMinimumDistance(50)
    cam$setMaximumDistance(500)
}

draw <- function() {
    rotateX(-.5)
    rotateY(-.5)
    background(0)
    fill(255, 0, 0)
    box(30)
    pushMatrix()
    translate(0, 0, 20)
    fill(0, 0, 255)
    box(5)
    popMatrix()
}

R Packages: library()

Processing.R has limited support for R packages. It will automatically download R packages that are requested using the library() function, so you can use packages directly.

Here is an example using the foreach package:

library(foreach)

foreach(i=1:3) %do%
    print(sqrt(i))

In practice we have only found a few R packages so far that work with Processing.R "out of the box." This is because the package must be pure R and all of its dependencies must also be pure R. There is renjin list of R packages which lists their compatibility with the renjin JVM. Any package fully supported in renjin is theoretically supported in Processing.R.

Documentation

See https://processing-r.github.io/. The documentation is generated from https://github.com/processing-r/Processing.R-docs-tools.

Papers

CONTRIBUTING

Feel free to hack on Processing.R! development.md will help you to get involved into the development of Processing.R.

CHANGELOG

See CHANGELOG

AUTHORS

See AUTHORS

Acknowledgments

  • Thanks processing for the Processing Development Environment(PDE).
  • Thanks renjin for its awesome JVM-based interpreter for the R language.
  • Thanks Jeremy Douglass for mentoring me in Google Summer of Code 2017.
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].