Description Usage Arguments Value Examples

Plot k-Neighborhood of given node containing all nodes with distances larger than k from given node.

1 2 | ```
neighborhood_plot(adj, names = NULL, node, k = 2,
nod_col = "#E0EED4", nod_shading = TRUE, ...)
``` |

`adj` |
numeric matrix representing the adjacency matrix. Can also be an
object of class |

`names` |
optional character vector specifiying the node names. |

`node` |
integer specifying the row index (within the adjacency matrix) of the node whose the neighborhood should be plotted. Alternatively the node name. |

`k` |
integer specifying the size of the neighborhood. Specifically,
the plot will contain all nodes that are |

`nod_col` |
character vector of length 1 specifying the node colors. |

`nod_shading` |
logical specifying whether the node colors should be shaded
as a function of the distance to |

`...` |
arguments to be passed to network_plot. |

nothing. A plot is created in dev.cur.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
## Not run:
# get fluency data
data(animal_fluency)
# edge list of fluency graph
edge_list = threshold_graph(animal_fluency[1:40])
# get adjacency matrix
adj = edg_to_adj(edge_list)
# plot
neighborhood_plot(adj, node = 'dog', k = 2)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.