[Biomod-commits] Adding histogram (X=Expl.Var) to response curves

Joseph Maina mainajm at gmail.com
Fri May 18 12:38:23 CEST 2012


Hi,

I am trying to add histograms to response curves which were generated
from a model using the 'response.plot' function. For each variable in
Expl.Var, histograms should be plotted with the corresponding response
curve. My script below adds a histogram only to the last response plot
in the graph. I would appreciate any help with suggestions on how to
add a histogram to the response plots, where x in the histogram is
based on Expl.Var or the x-axis of the response curve.

Thanks.
JOSEPH

response.plot(speciesA_GLM_full, Expl.Var, show.variables =
seq(1:ncol(Expl.Var)))
for(i in seq(1:ncol(Expl.Var){
      hist((x=Expl.Var[,i]),add=TRUE,freq=FALSE)}


More information about the Biomod-commits mailing list