mark_select | R Documentation |
These functions return logical vectors the length of the nodes in a network identifying which hold certain properties or positions in the network.
node_is_random()
marks one or more nodes at random.
node_is_max()
and node_is_min()
are more generally useful
for converting the results from some node measure into a mark-class object.
They can be particularly useful for highlighting which node or nodes
are key because they minimise or, more often, maximise some measure.
node_is_random(.data, size = 1)
node_is_max(node_measure, ranks = 1)
node_is_min(node_measure, ranks = 1)
node_is_mean(node_measure, ranks = 1)
.data |
An object of a manynet-consistent class:
|
size |
The number of nodes to select (as TRUE). |
node_measure |
An object created by a |
ranks |
The number of ranks of max or min to return.
For example, |
Other marks:
mark_diff
,
mark_nodes
,
mark_tie_select
,
mark_ties
,
mark_triangles
node_is_random(ison_brandes, 2)
#node_is_max(migraph::node_degree(ison_brandes))
#node_is_min(migraph::node_degree(ison_brandes))
#node_is_mean(node_degree(ison_brandes))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.