Learn R Programming

spnet (version 0.9.1-0)

spnet.example.basic: Spnet basic examples

Description

Create SpatialNetwork object examples for demonstration and testing purpose.

Usage

spnet.example.basic(map = TRUE, color = TRUE, symbol = TRUE, network1 = TRUE, network2 = TRUE, barplot = TRUE, title = TRUE)
spnet.example.basic.full()
spnet.example.basic.map()

Arguments

map
logical; if TRUE an example of map is provided.
color
logical; if TRUE an example of map colorization is provided.
symbol
logical; if TRUE an example of symbol use is provided.
network1
logical; if TRUE a first example of network is provided.
network2
logical; if TRUE a second example of network is provided.
barplot
logical; if TRUE a example of barplot rendering of a numeric variable is provided.
title
logical; if TRUE a example of title is provided.

Value

a SpatialNetwok object.

Examples

Run this code
data(world.map.simplified, package = "spnet")
net1 <- spnet.example.basic()
plot(net1)

Run the code above in your browser using DataLab