Skip to content

Commit 710489a

Browse files
committed
Update README.md
1 parent cac7deb commit 710489a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@ First, load the package and the cholera dataset.
1717

1818
The package provides a collection of simple `*Map` functions to easily get interactive maps.
1919

20-
For example, you can use `quickMap` to quickly represent points and polygons and set colors and sizes using a column of the dataframe linked to the `sp` object.
20+
#### quickMap
21+
You can use `quickMap` to quickly represent points and polygons and set colors and sizes using a column of the dataframe linked to the `sp` object.
2122

2223
quickMap(cholera$deaths, col.by="Count", size.by="Count")
2324

2425
![quickmap](https://cloud.githubusercontent.com/assets/9269625/7374091/9fc6c160-edd0-11e4-8d42-5cdf01face3e.png)
2526

26-
27+
#### heatMap
2728
You can use the `heatMap` function to get an heat map (raster image and/or contour lines) from a `SpatialGridDataFrame`.
2829

2930
heatMap(cholera$deaths.den)
3031

3132
![heatmap](https://cloud.githubusercontent.com/assets/9269625/7374266/81d155a2-edd1-11e4-846e-6a2a12c80de7.png)
3233

34+
#### netMap
3335
You can use `netMap` to map spatial networks from an `igraph` object. For example we can create a network of pumps in Snow's London by connecting pumps which are geographically close. Note that you need to set explicitly geographical coordinates to the graph vertices with the `lat` and `lon` attributes.
3436

3537
pump.adj <- as.matrix(dist(coordinates(cholera$pumps)))

0 commit comments

Comments
 (0)