[R] Fwd: only plot borders of a region in a scatter plot
wdunlap at tibco.com
Thu Aug 4 17:03:28 CEST 2016
If 'basinID' is the matrix of basin identifiers you could draw an outline
of the basin with identifier 'ID' with
coutour( basiinID == ID, level=0.5)
Add 'add=TRUE' if you are overlaying this on an existing plot.
On Thu, Aug 4, 2016 at 1:51 AM, Zun Yin <yinzun2000 at gmail.com> wrote:
> ear all,
> I have a matrix with ID of river basins (integer numbers). Now I want to
> highlight one river basin in a map by plotting only the border. Like the
> attached figure. Two river basins are highlighted by polygons. It is
> created by ferret, but I prefer to implement it by R. Anybody know how to
> do it? Thanks a lot.
> Zun Yin
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help