Description Usage Arguments Author(s) Examples
The spnet.create function is the official builder for creating SpatialNetwork objects.
1 2 3 4 5 6 7 8 9 10  | spnet.create(x, map, networks, plot.title = list(main =
  "Untitled SPNET object", sub = "", cex = 2, col = "#333333"),
  plot.label = list(cex = 1, col = "#333333"), plot.color,
  plot.blackwhite = list(enable = FALSE, min = 0.02, max = 0.98), plot.symbol,
  plot.barplot = list(variable = "", bound.lower = c(-0.5, -0.5), bound.upper
  = c(0.5, -0.5), fgcolor = "#666666", bgcolor = "#eeeeee", width = 8),
  plot.arrow, plot.legend = list(print = TRUE, cex = 1, ncol = 1, horiz =
  FALSE, lwd = 1), plot.layout = list(ratios = c(title = 1/10, graphic = 7/10,
  legend = 2/10), mat = NULL, reset = TRUE), plot.par = list(mar = c(1, 1, 1,
  1)), infos, quiet = FALSE)
 | 
x | 
 a   | 
map | 
 a   | 
networks | 
 a list of the networks to plot.  | 
plot.title | 
 a list of parameters for setting the title.  | 
plot.label | 
 a list of parameters to be passed to the   | 
plot.color | 
 a list of parameters for setting colors.  | 
plot.blackwhite | 
 a list of parameters for setting the black and white mode.  | 
plot.symbol | 
 a list of parameters for setting symbols.  | 
plot.barplot | 
 a list of parameters for setting barplots.  | 
plot.arrow | 
 a list of parameters for setting arrows.  | 
plot.legend | 
 a list of parameters for setting the legend.  | 
plot.layout | 
 a list of parameters for setting the layout.  | 
plot.par | 
 a list of graphical parameters.  | 
infos | 
 a list of meta information about the instance of the object.  | 
quiet | 
 = FALSE a logical, suppress all messages.  | 
Emmanuel Rousseaux
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  | 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
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.