# NOT RUN {
data(finch.ind)
#Random variable for this example
variable <- c(1,5,15,6,3,25)
# }
# NOT RUN {
plotSpVar(traits.finch, ind.plot.finch, sp.finch, variable,
silent = TRUE)
#If we change the value of the threshold
#(alpha = 10% instead of 5%
#and the minimum individual to represent significativity
#fixed to 3 instead of 10 by default)
#we can see some significant relationships.
plotSpVar(traits.finch, ind.plot.finch, sp.finch, variable,
p.val = 0.1, min.ind.signif = 3, silent = TRUE)
#For a more simple figure, add the option resume = TRUE.
#Again if we change the value of the threshold
#(alpha = 10% instead of 5%
#and the minimum individual to represent significativity
# fixed to 3 instead of 10 by default)
#we can see some significant relationships.
plotSpVar(traits.finch, ind.plot.finch, sp.finch, variable,
silent = TRUE, resume = TRUE, col.pop = "grey")
plotSpVar(traits.finch, ind.plot.finch, sp.finch, variable,
silent = TRUE, resume = TRUE, col.pop = "grey", col.sp = "black")
plotSpVar(traits.finch, ind.plot.finch, sp.finch, variable,
silent = TRUE, resume = TRUE, col.pop = "grey", col.sp = "black",
p.val = 0.1, min.ind.signif = 3)
# }
Run the code above in your browser using DataLab