Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getDefaultAttrs

Functions to generate and check global attribute lists


Description

The getDefaultAttrs function can be used to generate a default global attribute list for Graphviz. The checkAttrs function can be used to verify that such a list is valid for use.

Usage

getDefaultAttrs(curAttrs = list(), layoutType = "dot")
checkAttrs(attrs)

Arguments

curAttrs

Any attributes currently defined

layoutType

The layout method being used. Defaults to dot, and see graphvizCapabilities()$layoutTypes for possible values.

attrs

An attribute list of graphviz attributes

Details

The getDefaultAttrs function generates a four element list (elements being “graph”, “cluster”, “node” and “edge”). Contained in each is another list where the element names correspond to attributes and the value is the value for that attribute. This list can be used to set global attributes in Graphviz, and the exact list returned by getDefaultAttrs represents the values that are used as basic defaults.

The checkAttrs function can be used to verify that a global attribute list is properly formed.

Author(s)

Jeff Gentry

See Also

Examples

z <- getDefaultAttrs()
  checkAttrs(z)

Rgraphviz

Provides plotting capabilities for R graph objects

v2.34.0
EPL
Authors
Kasper Daniel Hansen [cre, aut], Jeff Gentry [aut], Li Long [aut], Robert Gentleman [aut], Seth Falcon [aut], Florian Hahne [aut], Deepayan Sarkar [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.