Brunel For Jupyter (R - IRkernel)
- The IRkernel must be installed into Jupyter. This code will only work via a Jupyter notebook. It will not work in R desktop.
- Java 1.7 or greater must be installed
JAVA_HOMEenv variable must be set to the location of the
- Install Brunel Visualization for Jupyter Notebooks:
pip install brunel
- On Win64, you may also need to modify your
jvm.dll. Try it first without doing this to see if it works. See this StackOverflow issue for more information.
Setup For Usage
Important: Install Brunel Visualization into R using R desktop, not from within IRkernel in Jupyter.
Installing Brunel for R requires the devtools library.
devtools if you have not already and then install the brunel package. For example:
install.packages("devtools") devtools::install_github("Brunel-Visualization/Brunel", subdir="R", ref="v2.3")
A sample notebook is included along with the required data in
/examples. Below is an example of Brunel code as used within R:
library(brunel) brunel ("x(mpg) y(horsepower) mean(horsepower) color(origin) tooltip(name)", data=cars)
brunel ("data('cars') x(mpg) y(horsepower) mean(horsepower) color(origin) tooltip(name)")