Re: [R-sig-phylo] change colors in make.simmap

2018-09-26 Thread Liam J. Revell
Hi Martin. The solution of Gopal will work to change the color scheme of the 'densityMap' object, but this is also automated in the function setMap. For example (in which trees is our 'multiSimmap' object): obj<-densityMap(trees,res=200,plot=FALSE) plot(obj) ## original color gradient

Re: [R-sig-phylo] change colors in make.simmap

2018-09-26 Thread Gopal Murali
Hi Martin, The below code might help you. require(phytools) tree<-pbtree(n=100) # simulate tree s<-sample(c(0,1),100,replace = T) # create character state names(s)<-tree$tip.label # assign tip labels to character state mtreel<-make.simmap(tree,s,nsim=10) XX <- densityMap(mtreel, lwd =

[R-sig-phylo] change colors in make.simmap

2018-09-26 Thread ramirez
Hello, I want to change the colors of a Bayesian stochastic mapping, using make.simmap (e.g., switching blue and red). Is it possible? (I tried switching the order of the columns of the states -- no effect.) Thanks for any help! Martin Ramirez ___