Learn R Programming

ndtv (version 0.13.4)

install.graphviz: Instructions for installing the Graphviz libraries on various platforms

Description

The network.layout.animate.Graphviz layout provides an interface for calling the various layouts provided by the Graphviz library (https://www.graphviz.org) if it is installed on your system. Since Graphviz is not an R package, you must manually install it on your system to get it to work.

Usage

install.graphviz()

Arguments

Value

On some platforms this function will open a web browser pointing to the download page for Graphviz.

Author

skyebend

Details

This function doesn't actually install Graphviz, it just points to these docs which give a very brief overview of how to do it on each platform.

Installing on Windows

  • download the "current stable release" installer from https://graphviz.org/download/

  • run the installer

  • Edit your system path variable to include the path to the directory containing the graphviz .exe files.

Installing on a Mac

It seems that there is no longer a .pkg for the mac, but it can be installed easily via homebrew

  • install the brew package manager from https://brew.sh/

  • from the Terminal, run brew install graphviz

Installing in Linux/unix

  • Graphviz is a standard package on many linux distributions. You can check if it is installed with a command like dpkg -s graphivz. If it is not installed, you should be able to install it with your system's package manager. i.e. sudo apt-get install graphviz or search 'graphivz' in the Software Center on Ubuntu.

When Graphviz is installed correctly on any platform the R command Sys.which('neato') should print out the path to the installed libraries.

References

John Ellson et.al (2001) "Graphviz -- open source graph drawing tools" Lecture Notes in Computer Science. Springer-Verlag. p483-484 https://www.graphviz.org

See Also

See network.layout.animate.Graphviz for more details about how ndtv usees Graphviz.