set.seed(1)
data(snpRFexample)
eg.rf<-snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
xchrom.names=xchrom.snps.names,x.covar=covariates,
y=phenotype,keep.forest=FALSE)
plot(margin(eg.rf))
Run the code above in your browser using DataCamp Workspace