'cluster.visualize' internally calls the 'cmdscale' function to
generate a set of points in 2-D for the compounds in selected clusters.
Note that for compounds in clusters smaller than the cutoff size, they
will not be considered in this calculation - their entries in 'distmat'
will be discarded if 'distmat' is provided, and distances involving
them will not be computed if 'distmat' is not provided. To determine the value for 'size.cutoff', you can use
'cluster.sizestat' to see the size distribution of clusters.
Because 'cmp.cluster' function allows you to perform multiple clustering
processes simultaneously with different cutoff values, the 'cls' parameter
may point to a data frame containing multiple clustering results. The user
can use 'cluster.result' to specify which result to use. By default, this
is set to 1, and the first clustering result will be used in visualization.
Whatever the value is, in interactive mode (described below), all clustering
result will be displayed when a compound is selected in the interactive plot.
If the colors provided in 'color.vector' are not enough to distinguish
clusters by colors, the function will silently reuse the colors,
resulting multiple clusters colored in the same color. We suggest you
use 'cluster.sizestat' to see how many clusters will be selected using
your 'size.cutoff', or simply provide no 'color.vector'.
If 'non.interative' is not set, the final plot is interactive. You will
be able to select points by clicking them. When you click on any point,
information about the compound represented by that point will be displayed.
This includes the cluster ID, cluster size, compound index in the SDF
and compound name if any. You can then perform another
selection. To exit this process, right click on X11 device or press ESC
in non-X11 device (Quartz and Windows).
By default, 'dimensions' is set to 2, and the built-in 'plot' function will
be used for plotting. If you need to do 3-Dimensional plotting, set 'dimensions'
to 3, and pass the returned value to 3D plot utilities, such as 'scatterplot3d'
or 'rggobi'. This package does not perform 3D plot on its own.