Description Usage Arguments Examples
Function calculating the coverage, distance and overlap components of the SPAG Index.
1 2 3 |
companiesDF |
- data frame with information regarding the companies. The data frame needs four columns: the longitude and latitude, the number of employees in each company and a category to which the company is assigned. The columns should be provided in the aforementioned order. |
shp |
- SpatialPolygonsDataFrame object obtained via loading a shapefile. |
theoreticalSample |
- number of Companies used of the estimation of the average distance between companies assuming uniform distribution. |
empiricalSample |
- number of companies used for the estimation of the average distance between companeis for which the distance index is being calculated. |
numberOfSamples |
- |
1 2 3 4 5 6 7 8 9 10 | data(CompaniesPoland)
data(MapPoland)
spagIndex <- SPAG(CompaniesPoland,shp = MapPoland)
print(spagIndex)
plot(spagIndex)
plot(spagIndex, addCompanies = FALSE)
plot(spagIndex, category = "A")
plot(spagIndex, category = "A") + coord_map("orthographic")
plot(spagIndex, category = "B")
plot(spagIndex, category = "C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.