simprof(data, num.expected=1000, num.simulated=999,
method.cluster="average", method.distance="euclidean",
method.transform="identity", alpha=0.05,
sample.orientation="row", const=0,
silent=TRUE, increment=100,
undef.zero=TRUE, warn.braycurtis=TRUE)
hclust
. Standard values from hclust
are "ward"
, "single"
,
"complete"
, "average"
, "mcquitty"
, "median"
or "centroid".
dist
(standard values are "euclidean", "maximum",
"manhattan", "canberra", "binary" or "minkowski"
), "braycurtis"
or "czekanowski"
for
Czekanowski Dissimilarity (referred to as Bray-Curtis Disimilarity in some fields, particularly
marine biology), or "actual-braycurtis"
for the true Bray-Curtis Dissimilarity where the
data are standardized before the dissimilarity is calculated. This value can also be any function
which returns a "dist"
object."identity"
(no
transformation), "squareroot"
, "log"
, "PA"
(Presence/Absence), or any numeric value (of type
"double"
). This transform is applied before the adjustment
constant is applied, so choose a constant accordingly."row"
or
"column"
. The practical effect of this is that the transpose will be
examined if "column"
is chosen."const"
will be appended as a new variable
to each sample, acting as a sort of dummy species (where that
interpretation is appropriate).FALSE
, a message will
be printed every increment
(see below) number of times in the
main looping procedure. This was implemented because the code can
take a while to run due to many permutations and its recursive
nature; however, for the same reason, many messages could be
printed.silent=FALSE
,
one which iterations a message should be printed. (If the iteration
number modulus increment
equals 0, that number will be printed.)NA
or 0. This defaults to TRUE
so that NA values are replaced by 0. This
default is to retain backward compatibility with the previous version of the package but
may be changed in a future release."braycurtis"
option because of the naming confusion in some fields
with the Czekanowski Dissimilarity Index. This defaults to TRUE
but may change in
future releases. For more information, see Yoshioka (2008) listed in the references.hclust
## Not run:
# # Load the USArrests dataset included with R
# # And use abbreviations of state names
# # We leave out the third column because
# # it is on a different scale
# usarrests<-USArrests[,c(1,2,4)]
# rownames(usarrests)<-state.abb
# # Run simprof on the data
# res <- simprof(data=usarrests,
# method.distance="braycurtis")
# # Graph the result
# pl.color <- simprof.plot(res)
# ## End(Not run)
Run the code above in your browser using DataLab