prettymapr: Scale Bar, North Arrow, and Pretty Margins in R
- CRAN: http://cran.r-project.org/web/packages/prettymapr/index.html
- GitHub: https://github.com/paleolimbot/prettymapr
> library(prettymapr)
バージョン: 0.1.5
関数名 | 概略 |
---|---|
addnortharrow |
Plot North Arrow |
addscaleba |
Auto Plot Scalebar |
geocode |
Geocode Locations |
makebbox |
Create a Bounding Box |
mergebbox |
Combine bounding boxes |
plotscalebar |
Raw Plot Scale Bar |
prettymap |
Plot A Pretty Map |
prettymapr-package |
Scale Bar, North Arrow, And Pretty Margins In R |
scalebarparams |
Get Scale Bar Parameters |
searchbbox |
Query The Interwebs For A Bounding Box |
zoombbox |
Zoom the extents of a bounding box |
addnortharrow
方位記号の追加
> library(maptools)
> data(wrld_simpl)
> plot(wrld_simpl)
> addnortharrow()
addscaleba
geocode
ジオコーディング。Google Web APIあるいは PickPoint.io APIを利用(キーの発行が必要)
> geocode("wolfville, ns")
makebbox
矩形を生成
> makebbox(45.125, -64.25, 44.875, -64.75)
min max
x -64.750 -64.250
y 44.875 45.125
searchbbox
任意の地名から矩形を検索
> searchbbox("kings county, NS")