I use RStudio. In order to plot neural network, I use the package neuralnet
and function \'plot\' to do the picture. But I find that every time, it will just show m
I find it in some place, we can call dev.off()
until RStudio never use other device but only studio plot itself
For studio part we can use plot(nn, rep="best") to get the plot. I have not idea why it works.
I am late to the post, was having the same issue but by passing "dev="pdf" in chunk options I was able to solve. Hope this proves helpful for anyone else having the same problem. The code
{r,echo=FALSE,dev="pdf"}