plot.wedding.cake {ElectroGraph}R Documentation

plot.wedding.cake

Description

Given an electrograph object for a valued relational data set, create a series of plots that illustrate the graph at various threshold levels for tie existence.

Usage

plot.wedding.cake(x, connectivity.mode="sociomatrix", force.mode="fruchterman.reingold",
                  ego.focus=NULL, filebase="electrograph", #type="png",
                  lower.bound=NULL, upper.bound=NULL, main.title=TRUE, 
                  plot.width = 600, plot.height = 600, ...) 

Arguments

x An object of class ``electrograph''.
connectivity.mode Should the projected distances be calculated using the shortest path, or the equivalent conductance of the electro-social approach?
force.mode Which force-directed placement method should be used to find node coordinates?
ego.focus A vector of nodes whose importance should be considered highest in the plot.
filebase An identifier for the series of images produced in the approach.
lower.bound, upper.bound The minimum and maximum values for an edge to be plotted.
main.title If true, print the bound values in the title of the plot.
plot.width, plot.height The height and width in pixels of the output PNG files.
... Additional options to pass to ``plot''.

Value

Creates a series of plots in the PNG format corresponding to the choices of bounds in a directory named for ``filebase''.

Author(s)

Andrew C. Thomas <act@acthomas.ca>

Examples


#A sample Erdos-Renyi type graph for wedding caking.
pts <- pair.sequence(10)
edges <- exp(rnorm(dim(pts)[1],0,1))
socio <- electrograph(cbind(pts,edges))

plot.wedding.cake(socio)


[Package ElectroGraph version 0.2.0 Index]