I am using the neuralnet package, to train a neural network. I am using rmarkdown html format, but at the moment of printing the plot is not displayed.
---
title: "neuralnet"
author: "RED"
date: "`r Sys.Date()`"
output:
html_document:
toc: yes
---
```{r}
library(neuralnet)
data(infert, package="datasets")
net.infert <- neuralnet(case~parity+induced+spontaneous, infert,
err.fct="ce", linear.output=FALSE, likelihood=TRUE)
```
```{r}
plot(net.infert)
```
Any idea how to fix this.