MyNixOS website logo
Description

An Implementation of Interaction Graphs of Aleks Jakulin.

Generates a 'Graphviz' graph of the most significant 3-way interaction gains (i.e. conditional information gains) based on a provided discrete data frame. Various output formats are supported ('Graphviz', SVG, PNG, PDF, PS). For references, see the webpage of Aleks Jakulin <http://stat.columbia.edu/~jakulin/Int/>.

Interaction Graphs package ‘integr’

The Interaction Graphs package ‘integr’ is an implementation of Interaction Analysis of Aleks Jakulin (http://stat.columbia.edu/~jakulin/Int/). It provides a GraphViz graph of 3-way interactions (i.e. conditional Information Gain) based on a provided discrete data.frame (i.e. all columns are factors). This graph serves to analyze the correlations between the attributes, as well to select the most informative attributes in the context of predictive machine learning modeling. The obtained interaction graph can be exported to various output formats: Graphviz file, SVG, PNG, PDF, or PS images.

In the following text, installation guides (from CRAN and GitHub) and a simple example for using the package are provided. For more detailed information on Interaction Graphs methodology, please consult the Tutorial vignette of this package using the command, after the package is installed:

vignette("IntGraphTutorial", package = "integr")

or visit the webpage of Aleks Jakulin (http://stat.columbia.edu/~jakulin/Int/).

Installation

One can install the released version of integr from CRAN with:

install.packages("integr")

Or from GitHub with:

library("devtools") #devtools package needs to be installed first!
install_github("peleplay/integr", build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = TRUE)

Example

A basic example which shows how to generate an Interaction Graph and export it to various formats is provided below. The same example is used in the Tutorial vignette.


#load integr package (needs to be installed first!)
library("integr")

#read Golf toy-dataset
data("golf")

#create an Interaction graph object
g <- interactionGraph(golf, classAtt = "Play", intNo = 10, speedUp = FALSE)

#plot the Interaction graph object (in RStudio!)
plotIntGraph(g)

#export the Interaction graph object to a Graphviz file
igToGrViz(g, path = "myFolder", fName = "myInteractionGraph")

#export the Interaction graph object to a SVG image
igToSVG(g, path = "myFolder", fName = "myInteractionGraph", h = 2000)

#export the Interaction graph object to a PNG image
igToPNG(g, path = "myFolder", fName = "myInteractionGraph", h = 2000)

#export the Interaction graph object to a PDF image
igToPDF(g, path = "myFolder", fName = "myInteractionGraph", h = 2000)

#export an Interaction graph object to a PS image
igToPS(g, path = "myFolder", fName = "myInteractionGraph", h = 2000)

path parameter is a string indicating the path (folder) in which the output should be saved.

fName parameter is a string indicating the name of the output. It should be defined without extension and without spaces. If not specified differently, ‘InteractionGraph’ by default;

h is the desired height of the output image in pixels. If not defined differently, 2000 by default.

Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows