isovist | R Documentation |
Create one or more isovists at particular points, given angle and field of view
isovist(boundaryMap, x, y, angle = NA, viewAngle = NA, verbose = FALSE)
boundaryMap |
A ShapeMap with lines designating the isovist boundaries |
x |
X coordinate of the origin points |
y |
Y coordinate of the origin points |
angle |
The angle (from the X axis) of the isovist look direction |
viewAngle |
The angle signifying the isovist's field of view |
verbose |
Optional. Show more information of the process. |
A ShapeMap with the isovist polygons
mifFile <- system.file(
"extdata", "testdata", "simple",
"simple_interior.mif",
package = "alcyon"
)
sfMap <- st_read(mifFile,
geometry_column = 1L, quiet = TRUE
)
shapeMap <- as(sfMap[, vector()], "ShapeMap")
isovist(
shapeMap,
x = c(3.01, 1.3),
y = c(6.70, 5.2),
angle = 0.01,
viewAngle = 3.14,
FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.