Learn R Programming

gnn (version 0.0-4)

plot: Functions for Plotting

Description

Functions for plotting.

Usage

# S3 method for gnn_GNN
plot(x, kind = c("scatter", "loss"), max.n.samples = NULL,
    type = NULL, xlab = NULL, ylab = NULL,
    y2lab = NULL, labels = "X", pair = NULL, ...)

Value

Plot by side-effect.

Arguments

x

trained object of class "gnn_GNN" whose loss function (loss per epoch of training) is to be plotted.

kind

character() indicating the type of plot.

max.n.samples

maximal number of samples to be plotted.

type

line type; see plot().

xlab

x-axis label; see plot().

ylab

y-axis label; see plot().

y2lab

secondary y-axis label.

labels

character() vector indicating the labels to be used; if of length 1, then the base label to be used.

pair

numeric(2) containing the indices of the pair to be plotted.

...

additional arguments passed to the underlying plot().

Author

Marius Hofert

See Also

fitGNN().