grplot.parental: Plot a graph.

Description Usage Arguments Value See Also Examples

View source: R/grplot.R

Description

Plots a parental graph, by default using the layout routines of the package 'network'.

Usage

1
2
3
4
5
  ## S3 method for class 'parental'
 grplot(parents, col = 1, alpha = 1,
  edgecol, edgealpha = 1, layout.par = list(niter = 1e+05),
  grobNode = grobNodeName, grobNodeSize = grobNodeNameSize,
  offset = 0.25, hideIsolates = F, coords, ...)

Arguments

parents

An object of class 'parental'

col

A vector of colours for the nodes (FIXME - does not currently work.)

alpha

A vector of alpha values for the nodes (FIXME - does not currently work.)

edgecol

A matrix of edge colours.

edgealpha

A matrix of edge alpha values

layout.par

Passed to network.layout.fruchtermanreingold

grobNode

A grob function that will be used to draw the nodes

grobNodeSize

A function that can compute the sizes of the nodes

offset

A offset

hideIsolates

A logical of length 1. If true, isolates nodes (those not connected to any other node) are removed.

coords

Optionally provide the coordinates at which each node will be drawn. This should be supplied as a data.frame with columns xcoord and ycoord.

...

Further arguments (not currently passed on?)

Value

A lattice plot

See Also

grplot.parental.list, panel.parental

Examples

1
2
x <- parental(c(), c(1), c(2))
grplot(x)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.