https://github.com/cran/CARBayes
Raw File
Tip revision: 4dcb0c9a35d454fcd280455ae570d6dad367089c authored by Duncan Lee on 08 March 2024, 13:20:02 UTC
version 6.1.1
Tip revision: 4dcb0c9
highlight.borders.Rd
\name{highlight.borders}
\alias{highlight.borders}

\title{
Creates an sf data.frame object (from the sf package) identifying a subset of borders 
between neighbouring areas.
}


\description{
Creates an sf data.frame object (from the sf package) identifying a subset of borders 
between neighbouring areas, which allows them to be overlayed on a map. 
An example is given in the vignette accompanying this package.
}

\usage{
highlight.borders(border.locations, sfdata)
}

\arguments{
  \item{border.locations}{
A K by K matrix, where K is the number of areas, containing 3 distinct values: 
NA for non-neighbouring areas; 0 for borders between neighbouring areas to be 
highlighted on a map; and 1 for borders between neighbouring areas not to be 
highlighted on a map.
}
  \item{sfdata}{
An sf data.frame (from the sf package) object used for plotting the data and 
creating the original neighbourhood matrix W.
}
}



\value{
An sf data.frame object from the sf package, which contains the vertices of all the 
borders to be highlighted on the map.  The mapping can be done using the mapview
package, see the vignette accompanying this package for an example.
}

\author{
Duncan Lee
}


\examples{
## See the vignette accompanying this package for an example of its use.
}
back to top