Learn R Programming

spnet (version 0.9.1-0)

Plotting (Social) Networks on Maps

Description

Facilitates the rendering of networks for which nodes have a specific position on a map (cities, participants in a political debate, etc.). Map data and network data are stored together in a single object which handles the match between network nodes and their respective position on the map. The plot method renders both the map and the network data. Several networks can be plot simultaneously. The graphic is highly customisable and the legend is automatically printed. Map data have to be supplied as 'SpatialPolygons' objects (from the 'sp' package) and network data as 'named matrix'.

Copy Link

Version

Install

install.packages('spnet')

Monthly Downloads

39

Version

0.9.1-0

License

GPL-3

Last Published

February 22nd, 2016

Functions in spnet (0.9.1-0)

graph.barplot.bgcolor<-

Set the barplot background color of a SpatialNetwork object
graph.barplot.bound.lower<-

Set the barplot lower bound position of a SpatialNetwork object
graph.barplot.width

Get the barplot width of a SpatialNetwork object
color2blackwhite

Convert colors to contrasted gray level for black and white rendering
graph.blackwhite.enable

Get the black and white mode status of a SpatialNetwork object
graph.barplot.fgcolor<-

Set the barplot foreground color of a SpatialNetwork object
graph.color.border

Get the border color of a SpatialNetwork object
graph.label.list<-

Set the list of all label parameters of a SpatialNetwork object
[

Extract or replace parts of a SpatialNetwork object
graph.color.variable

Get the color variable of a SpatialNetwork object
graph.color.node<-

Set the default color of a node of a SpatialNetwork object
graph.network.arrow.head.lth

Get the arrow head length of a given network of a SpatialNetwork object
graph.barplot.bound.lower

Get the barplot lower bound position of a SpatialNetwork object
graph.map<-

Set the map to a SpatialNetwork object
graph.barplot.fgcolor

Get the barplot foreground color of a SpatialNetwork object
graph.color.variable<-

Set the color variable of a SpatialNetwork object
graph.barplot.variable

Get the barplot variable of a SpatialNetwork object
graph.blackwhite.list<-

Set the list of all black and white mode parameters of a SpatialNetwork object
graph.label.color

Get the label color of a SpatialNetwork object
graph.legend.list<-

Set the list of all legend parameters of a SpatialNetwork object
graph.color.region<-

Set the default color of a region of a SpatialNetwork object
graph.networks.add<-

Add a network
graph.network.arrow.shorten

Get the arrow shortening of a given network of a SpatialNetwork object
graph.legend.print

Get the legend print (yes/no) status of a SpatialNetwork object
graph.color.legend<-

Set the color legend of a SpatialNetwork object
graph.color.border<-

Set the border color of a SpatialNetwork object
graph.network.arrow.shift.x

Get the arrow shift on the x axis of a given network of a SpatialNetwork object
SpatialNetwork-class

Class "SpatialNetwork"
graph.label.cex<-

Set the label cex of a SpatialNetwork object
graph.label.color<-

Set the label color of a SpatialNetwork object
graph.network.arrow.head.lth<-

Set the arrow head length of a given network of a SpatialNetwork object
graph.network.arrow.color<-

Set the arrow color of a given network of a SpatialNetwork object
graph.legend.line.width<-

Set the legend line width parameter of a SpatialNetwork object
graph.label.variable

Get the label variable of a SpatialNetwork object
graph.legend.horiz

Get the legend horizontal or vertical setting of a SpatialNetwork object
spnet.example.basic

Spnet basic examples
graph.network.label<-

Set the label of a given network of a SpatialNetwork object
graph.layout.list

Get the list of all layout parameters of a SpatialNetwork object
graph.par.list<-

Set the list of all par parameters of a SpatialNetwork object
graph.barplot.width<-

Set the barplot width of a SpatialNetwork object
graph.network.arrow.line.type

Get the arrow line type of a given network of a SpatialNetwork object
graph.color.list<-

Set the list of all color parameters of a SpatialNetwork object
graph.network.arrow.shift.y<-

Set the arrow shift on the y axis of a given network of a SpatialNetwork object
graph.network.arrow.shorten<-

Set the arrow shortening of a given network of a SpatialNetwork object
graph.barplot.bgcolor

Get the barplot background color of a SpatialNetwork object
graph.legend.cex

Get the legend cex parameter of a SpatialNetwork object
graph.legend.ncol<-

Set the legend number of columns of a SpatialNetwork object
graph.blackwhite.list

Get the list of all black and white mode parameters of a SpatialNetwork object
graph.legend.ncol

Get the legend number of columns of a SpatialNetwork object
graph.barplot.bound.upper

Get the barplot upper bound position of a SpatialNetwork object
graph.network.arrow.thickness<-

Set the arrow thickness of a given network of a SpatialNetwork object
graph.networks.list

Get the list of all networks parameters of a SpatialNetwork object
graph.symbol.color<-

Set the symbol color of a SpatialNetwork object
graph.color.background<-

Set the background color of a SpatialNetwork object
graph.symbol.legend

Get the symbol legend of a SpatialNetwork object
graph.legend.list

Get the list of all legend parameters of a SpatialNetwork object
graph.network.arrow.line.type<-

Set the arrow line type of a given network of a SpatialNetwork object
graph.network.arrow.thickness

Get the arrow thickness of a given network of a SpatialNetwork object
graph.blackwhite.max

Get the black and white mode maximal gray value of a SpatialNetwork object
graph.network.arrow.head.type<-

Set the arrow head type of a given network of a SpatialNetwork object
spnet.create

Create a SpatialNetwork object
graph.color.legend

Get the color legend of a SpatialNetwork object
graph.symbol.cex<-

Set the symbol cex parameter of a SpatialNetwork object
graph.blackwhite.enable<-

Set the black and white mode status of a SpatialNetwork object
graph.color.list

Get the list of all color parameters of a SpatialNetwork object
graph.network.list

Get the list of all parameters of a given network of a SpatialNetwork object
graph.network.data

Get the data of a given network of a SpatialNetwork object
graph.barplot.bound.upper<-

Set the barplot upper bound position of a SpatialNetwork object
graph.label.variable<-

Set the label variable of a SpatialNetwork object
graph.barplot.list

Get the list of all barplot parameters of a SpatialNetwork object
graph.layout.list<-

Set the list of all layout parameters of a SpatialNetwork object
graph.networks.remove<-

Remove a network
graph.network.arrow.shift.x<-

Set the arrow shift on the x axis of a given network of a SpatialNetwork object
graph.network.arrow.color

Get the arrow color of a given network of a SpatialNetwork object
graph.network.arrow.head.type

Get the arrow head type of a given network of a SpatialNetwork object
graph.label.list

Get the list of all label parameters of a SpatialNetwork object
graph.map

Get the map to a SpatialNetwork object
graph.legend.print<-

Set the legend print (yes/no) status of a SpatialNetwork object
graph.network.arrow.opacity<-

Set the arrow opacity of a given network of a SpatialNetwork object
graph.color.region

Get the default color of a region of a SpatialNetwork object
graph.label.cex

Get the label cex of a SpatialNetwork object
graph.symbol.legend<-

Set the symbol legend of a SpatialNetwork object
graph.symbol.variable<-

Set the symbol variable of a SpatialNetwork object
graph.symbol.color

Get the symbol color of a SpatialNetwork object
graph.symbol.shift.y

Get the symbol shift on the y axis of a SpatialNetwork object
graph.par.list

Get the list of all par parameters of a SpatialNetwork object
graph.symbol.shift.x<-

Set the symbol shift on the x axis of a SpatialNetwork object
graph.networks.list<-

Set the list of all networks parameters of a SpatialNetwork object
graph.symbol.list

Get the list of all symbol parameters of a SpatialNetwork object
graph.symbol.variable

Get the symbol variable of a SpatialNetwork object
graph.title.main

Get the main title of a SpatialNetwork object
graph.barplot.list<-

Set the list of all barplot parameters of a SpatialNetwork object
graph.title.sub<-

Set the sub title of a SpatialNetwork object
graph.symbol.shift.x

Get the symbol shift on the x axis of a SpatialNetwork object
graph.legend.line.width

Get the legend line width parameter of a SpatialNetwork object
graph.title.main<-

Set the main title of a SpatialNetwork object
graph.network.arrow.shift.y

Get the arrow shift on the y axis of a given network of a SpatialNetwork object
graph.map.plot.position

Plot a map labelled with the ID numbering
spnet

Plotting social networks on maps
world.map.simplified

The TM_WORLD_BORDERS_SIMPL-0.3 world map.
graph.network.label

Get the label of a given network of a SpatialNetwork object
graph.network.list<-

Set the list of all parameters of a given network of a SpatialNetwork object
graph.network.data<-

Set the data of a given network of a SpatialNetwork object
graph.network.exists

Test if a network exist
graph.symbol.shift.y<-

Set the symbol shift on the y axis of a SpatialNetwork object
graph.legend.cex<-

Set the legend cex parameter of a SpatialNetwork object
spnet.get.local.user.manual

Get the local copy of the spnet user manual
graph.blackwhite.min

Get the black and white mode minimal gray value of a SpatialNetwork object
graph.color.node

Get the default color of a node of a SpatialNetwork object
graph.color.background

Get the background color of a SpatialNetwork object
graph.network.arrow.opacity

Get the arrow opacity of a given network of a SpatialNetwork object
graph.legend.horiz<-

Set the legend horizontal or vertical setting of a SpatialNetwork object
graph.symbol.cex

Get the symbol cex parameter of a SpatialNetwork object
graph.title.list

Get the list of all title parameters of a SpatialNetwork object
graph.title.sub

Get the sub title of a SpatialNetwork object
graph.title.list<-

Set the list of all title parameters of a SpatialNetwork object
graph.barplot.variable<-

Set the barplot variable of a SpatialNetwork object
graph.blackwhite.min<-

Set the black and white mode minimal gray value of a SpatialNetwork object
graph.blackwhite.max<-

Set the black and white mode maximal gray value of a SpatialNetwork object
graph.symbol.list<-

Set the list of all symbol parameters of a SpatialNetwork object