HiveR, hive plot data sets are stored as an S3 class
HivePlotData, detailed below.
The structure of a
HivePlotData object is a list
of 6 elements, some of which are data frames, and an attribute, as follows:
|$nodes||data frame||Data frame of node properties|
|$axis||int||Axis to which node is assigned|
|$radius||num||Radius (position) of node along the axis|
|$size||num||Node size in pixels|
|$edges||data frame||Data frame of edge properties|
|$id1||int||Starting node id|
|$id2||int||Ending node id|
|$weight||num||Width of edge in pixels|
|$type||chr||Type of hive. See Note.|
|$desc||chr||Description of data|
|$axis.cols||chr||Colors for axes|
|- attr||chr "HivePlotData"||The S3 class designation.|
$edges$id2 are defined as the
starting and ending nodes of a particular edge, hive plots as currently
implemented are not directed graphs (agnostic might be a better word).
HPD$type indicates the type of hive data: If
2D, then the
data is intended to be plotted with
hivePlot which is a 2D plot with
axes radially oriented, and (hopefully) no edges that cross axes. If
3D, then the data is intended to be plotted with
which gives an interactive 3D plot, with axes oriented in 3D.
Bryan A. Hanson, DePauw University. [email protected]
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.