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

dot

Create DOT Representations


Description

Write a DOT language representation of an object for processing via Graphviz.

Usage

write_to_dot(x, con = stdout(), ...)
## S3 method for class 'Weka_classifier'
write_to_dot(x, con = stdout(), ...)

Arguments

x

an R object.

con

a connection for writing the representation to.

...

additional arguments to be passed from or to methods.

Details

Graphviz (http://www.graphviz.org) is open source graph visualization software providing several main graph layout programs, of which dot makes “hierarchical” or layered drawings of directed graphs, and hence is typically most suitable for visualizing classification trees.

Using dot, the representation in file ‘foo.dot’ can be transformed to PostScript or other displayable graphical formats using (a variant of) dot -Tps foo.dot >foo.ps.

Some Weka classifiers (e.g., tree learners such as J48 and M5P) implement a “Drawable” interface providing DOT representations of the fitted models. For such classifiers, the write_to_dot method writes the representation to the specified connection.


RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

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