HivePlotData
object. A typical use is to convert the radii from the native/absolute values in the original object to either a normalized value (0HivePlotData
object.HivePlotData
. }
c("rank", "norm", "scale", "invert", "ranknorm", "prune", "offset", "stretch")
giving the type of modification to be made.}
method = c("scale", "invert", "offset", "stretch")
, a numeric vector of the same length as the number of axes.
}
plotHive
has arguments for grid
that get laundered through manipAxis
}ties.method = "first"
so that each node gets a unique radius. For pruning, the nodes and edges are removed and then the remaining axes are renumbered to start from one. Exercise caution!For "scale"
node radii will be multiplied by the corresponding value in this argument. For "invert"
a value of -1 will cause the corresponding axis to be inverted. For "prune"
, a single value specifying the axis to be pruned should be given. For "offset"
the values in "action"
will be subtracted from the node radii. For "stretch"
, node radii will first be offset so that the minimum value is zero, then multiplied by the values in "action"
to stretch the axis. Depending upon the desired effect, one might use "stretch"
followed by "offset"
or perhaps other combinations.
HivePlotData
object.plotHive(HEC, bkgnd = "white") # default is absolute positioning of nodes plotHive(HEC, method = "rank", bkgnd = "white") plotHive(HEC, method = "norm", bkgnd = "white")
# In these examples, we'll explicitly use manipAxis and then plot # in a separate step. This is because trying to plot on the fly in # these cases will result in absolute scaling (which we do use here, # but one might not want to be forced to do so).
HEC2 <- manipAxis(HEC, method = "invert", action = c(-1, 1)) plotHive(HEC2, bkgnd = "white") HEC3 <- manipAxis(HEC, method = "stretch", action = c(2,3)) plotHive(HEC3, bkgnd = "white") HEC4 <- manipAxis(HEC, method = "offset", action = c(0, 1.5)) plotHive(HEC4, bkgnd = "white")