Learn R Programming

ANN2 (version 1.5)

plotStepFunction: Plot the step function used in replicator

Description

Plot the projections of observations onto the stepfunction in the low-dimensional space of the compression layer

Usage

plotStepFunction(object = NULL, X, hidden_node = 1, color = "red",
  derivative = FALSE, ...)

Arguments

object

Trained replicator neural network object

X

Data to be plotted as points on steps

hidden_node

Number of the node to plot

color

Color of points. Replace with a vector indicating class-membership to give points in classes different colors.

derivative

logical indicating if the derivative of the step function should be plotted.

...

further arguments to be passed to plot