fawda123 / NeuralNetTools

R package of generic neural network tools
https://fawda123.github.io/NeuralNetTools/
Creative Commons Zero v1.0 Universal
71 stars 20 forks source link

unable to modify size and legend of plotted neural net #16

Closed ykl7 closed 8 years ago

fawda123 commented 8 years ago

You can create legends using the base function:


librarynnet)

data(neuraldat) 
set.seed(123)

mod <- nnet(Y1 ~ X1 + X2 + X3, data = neuraldat, size = 5)

plotnet(mod)  
legend('topright', 
  c('node', 'weight'), 
  pch = c(16, NA), 
  lty = c(NA, 1), 
  col = c('lightblue', 'black')
  )

Can you please provide an example of the problem?

ykl7 commented 8 years ago

Thanks @fawda123 it's working fine now. yesterday i was unable to use the plotnet function to get a graph when it wass followed by the olden function. That started working now too. Sorry for the trouble