[R] gam and ordination (vegan and labdsv surf and ordisurf)

Jari Oksanen jari.oksanen at oulu.fi
Thu Nov 20 15:56:51 CET 2008


On Thu, 2008-11-20 at 09:45 -0500, stephen sefick wrote:
> #for instance this
> ordisurf(bug.4, env.savannah[,"TSS"]+env.savannah[,"TIN.TP"])
> 
Stephen,

According to ordisurf documentation, this is correct if 'bug.4' is an
ordination result, and the sum of those two env.savannah columns is the
single variable you want to plot. The independent variables will be the
axes which are found from 'bug.4', and there can only be one response
variable, but that can be a sum of several variables. The sensibility of
this model is up to the user.

If you want to plot several y-variates in the same graph instead of
their sum, you can use argument add=TRUE for the second variable
(defaults FALSE) and ordisurf() overlays the fitted surface in an
existing plot.

Cheers, Jari Oksanen 
-- 
Jari Oksanen <jari.oksanen at oulu.fi>



More information about the R-help mailing list