Produces text input for D2 to make a diagram of a given data frame, usually rendered with SVG.
# S3 method for data.frame
d2(x, name = NA_character_, ...)
A scalar character, containing text input for Graphviz.
a data.frame.
a character scalar, giving the name of the record, if any. The
name must be non-empty, since it is also used to name the single table in
the plot. Defaults to NA
: if left missing, it is set to "data".
further arguments passed to or from other methods.
The rows in the plotted data frame include information about the attribute classes.
The generic d2
.