File: fortify-map-ib.rd

package info (click to toggle)
r-cran-ggplot2 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,084 kB
  • sloc: makefile: 3
file content (26 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\name{fortify.map}
\alias{fortify.map}
\title{Fortify a map}
\author{Hadley Wickham <h.wickham@gmail.com>}

\description{
Fortify method for map objects
}
\usage{fortify.map(model, data, ...)}
\arguments{
\item{model}{map object}
\item{data}{ignored}
\item{...}{ignored}
}

\details{This function turns a map into a data frame than can more easily be
plotted with ggplot2.}

\examples{if (require(maps)) {
ca <- map_data("county", "ca")
qplot(long, lat, data = ca, geom="polygon", group = group)
tx <- map_data("county", "texas")
qplot(long, lat, data = tx, geom="polygon", group = group, 
colour = I("white"))
}}
\keyword{hplot}