famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

plot of spatial effect fails if a predefined object is used for the spatial component in the model #75

Open famuvie opened 8 years ago

famuvie commented 8 years ago
spmodel <- list(model = 'blocks', 
                coord = globulus[, c('x','y')],
                id    = 'bl')

fm1 <- remlf90(fixed   = phe_X ~ gg,
               spatial = spmodel,
               data    = globulus)
#> No specification of initial variances.
#>      Using default value of 1 for all variance components.
#>      See ?breedR.getOption.

plot(fm1, "spatial")
#> Error in x$call$spatial$model: object of type 'symbol' is not subsettable