Learn R Programming

migraph (version 0.8.1)

autographr: Quickly graph networks with sensible defaults

Description

The aim of this function is to provide users with a quick and easy graphing function that makes best use of the data, whatever its composition.

Usage

autographr(
  object,
  algorithm = "stress",
  labels = TRUE,
  node_size = NULL,
  node_color = NULL,
  ...
)

Arguments

object

migraph-consistent object

algorithm

an igraph layout algorithm, currently defaults to 'stress' but Fruchterman-Reingold and Kamada-Kawai also available

labels

logical, whether to print node names as labels if present

node_size

an override in case this needs to be manually set

node_color

node variable in quotation marks that should be used for colouring the nodes

...

extra arguments

Examples

Run this code
# NOT RUN {
autographr(ison_coleman)
autographr(ison_karateka)
# }

Run the code above in your browser using DataLab