Description Usage Arguments Author(s) See Also Examples

`plot.nn`

, a method for the `plot`

generic. It is designed for an
inspection of the weights for objects of class `nn`

, typically produced
by `neuralnet`

.

1 2 3 4 5 6 7 8 9 | ```
## S3 method for class 'nn'
plot(x, rep = NULL, x.entry = NULL, x.out = NULL,
radius = 0.15, arrow.length = 0.2, intercept = TRUE,
intercept.factor = 0.4, information = TRUE, information.pos = 0.1,
col.entry.synapse = "black", col.entry = "black",
col.hidden = "black", col.hidden.synapse = "black",
col.out = "black", col.out.synapse = "black",
col.intercept = "blue", fontsize = 12, dimension = 6,
show.weights = TRUE, file = NULL, ...)
``` |

`x` |
an object of class |

`rep` |
repetition of the neural network. If rep="best", the repetition with the smallest error will be plotted. If not stated all repetitions will be plotted, each in a separate window. |

`x.entry` |
x-coordinate of the entry layer. Depends on the arrow.length in default. |

`x.out` |
x-coordinate of the output layer. |

`radius` |
radius of the neurons. |

`arrow.length` |
length of the entry and out arrows. |

`intercept` |
a logical value indicating whether to plot the intercept. |

`intercept.factor` |
x-position factor of the intercept. The closer the factor is to 0, the closer the intercept is to its left neuron. |

`information` |
a logical value indicating whether to add the error and steps to the plot. |

`information.pos` |
y-position of the information. |

`col.entry.synapse` |
color of the synapses leading to the input neurons. |

`col.entry` |
color of the input neurons. |

`col.hidden` |
color of the neurons in the hidden layer. |

`col.hidden.synapse` |
color of the weighted synapses. |

`col.out` |
color of the output neurons. |

`col.out.synapse` |
color of the synapses leading away from the output neurons. |

`col.intercept` |
color of the intercept. |

`fontsize` |
fontsize of the text. |

`dimension` |
size of the plot in inches. |

`show.weights` |
a logical value indicating whether to print the calculated weights above the synapses. |

`file` |
a character string naming the plot to write to. If not stated, the plot will not be saved. |

`...` |
arguments to be passed to methods, such as graphical parameters
(see |

Stefan Fritsch, Frauke Guenther guenther@leibniz-bips.de

1 2 3 4 | ```
XOR <- c(0,1,1,0)
xor.data <- data.frame(expand.grid(c(0,1), c(0,1)), XOR)
print(net.xor <- neuralnet( XOR~Var1+Var2, xor.data, hidden=2, rep=5))
plot(net.xor, rep="best")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.