Learn R Programming

spnet (version 0.9.1-0)

SpatialNetwork-class: Class "SpatialNetwork"

Description

Allow to store spatial networks, especially for rendering them

Arguments

Slots

.Data
object of class "list"
map
object of class "SpatialPolygons"
networks
object of class "list"
plot.title
object of class "list"
plot.label
object of class "list"
plot.color
object of class "list"
plot.blackwhite
object of class "list"
plot.symbol
object of class "list"
plot.arrow
object of class "list"
plot.barplot
object of class "list"
plot.legend
object of class "list"
plot.layout
object of class "list"
plot.par
object of class "list"
infos
object of class "list"
meta
object of class "list"
warnings
object of class "list"
names
object of class "character"
row.names
object of class "data.frameRowLabels"
.S3Class
object of class "character"

Objects from the Class

Objects can be created with the spnet function (official class builder).

See Also

Other res: graph.map.plot.position, graph.map.plot.position,SpatialNetwork-method, graph.map.plot.position,SpatialPolygons-method

Examples

Run this code
people <- c("John", "Elsa", "Brian", "Kate")
position <- c(2,4,6,8)

net1.df <- data.frame(
  'NODE' = people,
  'POSITION' = position
)

net1 <- spnet.create(
  x = net1.df
)
net1

net2 <- spnet.create(
  x = people
)
net2

Run the code above in your browser using DataLab