plot.walking | R Documentation |
Plot method for neighborhoodWalking().
## S3 method for class 'walking'
plot(x, type = "area.points", add = FALSE,
tsp.method = "repetitive_nn", path.width = 2, alpha.level = 0.75,
polygon.type = "solid", polygon.col = NULL, polygon.lwd = 2, ...)
x |
An object of class "walking" created by |
type |
Character. Type of expected plot: "roads", "area.points" or "area.polygons". Valid only when |
add |
Logical. Add graphic to plot. |
tsp.method |
Character. Traveling salesperson problem algorithm. |
path.width |
Numeric. Set width of paths. |
alpha.level |
Numeric. Alpha level transparency for area plot: a value in [0, 1]. |
polygon.type |
Character. "border" or "solid". |
polygon.col |
Character. |
polygon.lwd |
Numeric. |
... |
Additional plotting parameters. |
A base R plot.
When plotting area graphs with simulated data (i.e., case.set = "expected"
), there may be discrepancies between observed cases and expected neighborhoods, particularly between neighborhoods. type = "roads" inspired by Shiode et. al. (2015).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.