mapField {clim.pact} | R Documentation

## MapField

### Description

Draws maps of fields in a field object, eg read using `retrieve.nc`.

### Usage

    mapField(x,l=NULL,greenwich=TRUE,
                         what="ano",method="nice",val.rng=NULL,
                         col="black",col.coast="grey",lwd=2,lty=1,
                         add=FALSE,las = 1,levels=NULL,xlim=NULL,ylim=NULL)
    \arguments{
        \item{x}{ A field object. }
        \item{l}{The field to map. Default: the last field in the record.}
        \item{what}{What to draw: "ano"-> anomalies, "cli"-> climatological
        values, "abs" -> absolute values. }
      \item{method}{"nice" -> this-is-escaped-code{, otherwise use
        this-is-escaped-codenormal-bracket15bracket-normal.}
        \itemnormal-bracket17bracket-normalval.rngnormal-bracket17bracket-normalnormal-bracket18bracket-normalValid range: interval used for colour scale.normal-bracket18bracket-normal
        \item{greenwich}normal-bracket20bracket-normal'TRUE' centres on Greenwich meridian.normal-bracket20bracket-normal
        \itemnormal-bracket21bracket-normalcolnormal-bracket21bracket-normalnormal-bracket22bracket-normalContour line colour for levels.normal-bracket22bracket-normal
        \itemnormal-bracket23bracket-normalcol.coastnormal-bracket23bracket-normalnormal-bracket24bracket-normalContour line colour for coast lines.normal-bracket24bracket-normal
        \itemnormal-bracket25bracket-normallwdnormal-bracket25bracket-normalnormal-bracket26bracket-normalLine width.normal-bracket26bracket-normal
        \itemnormal-bracket27bracket-normalltynormal-bracket27bracket-normalnormal-bracket28bracket-normalLine type.normal-bracket28bracket-normal
        \itemnormal-bracket29bracket-normaladdnormal-bracket29bracket-normalnormal-bracket30bracket-normalAdds map to old figure.normal-bracket30bracket-normal
        \itemnormal-bracket31bracket-normallasnormal-bracket31bracket-normalnormal-bracket34bracket-normalSee this-is-escaped-codenormal-bracket33bracket-normalnormal-bracket34bracket-normal
        \itemnormal-bracket35bracket-normallevelsnormal-bracket35bracket-normalnormal-bracket38bracket-normalSee this-is-escaped-codenormal-bracket37bracket-normalnormal-bracket38bracket-normal
        \itemnormal-bracket39bracket-normalxlimnormal-bracket39bracket-normalnormal-bracket42bracket-normalsee this-is-escaped-codenormal-bracket41bracket-normalnormal-bracket42bracket-normal
        \itemnormal-bracket43bracket-normalylimnormal-bracket43bracket-normalnormal-bracket46bracket-normalsee this-is-escaped-codenormal-bracket45bracket-normalnormal-bracket46bracket-normal
      }
    \valuenormal-bracket48bracket-normalnormal-bracket48bracket-normal
    \authornormal-bracket49bracket-normalR.E. Benestadnormal-bracket49bracket-normal

### Arguments

`x` | A field object.
`l` | The field to map. Default: the last field in the record.
`what` | What to draw: "ano"-> anomalies, "cli"-> climatological values, "abs" -> absolute values.
`method` | "nice" -> `filled.contour`, otherwise use `image`.
`val.rng` | Valid range: interval used for colour scale.
`greenwich` | 'TRUE' centres on Greenwich meridian.
`col` | Contour line colour for levels.
`col.coast` | Contour line colour for coast lines.
`lwd` | Line width.
`lty` | Line type.
`add` | Adds map to old figure.
`las` | See `par`
`levels` | See `contour`
`xlim` | see `plot`
`ylim` | see `plot`

### Value

### Author(s)

R.E. Benestad

### Examples

    library(clim.pact)
    ## Not run:
    skt<-retrieve.nc("skt.mon.mean.nc",
                     x.rng=c(-90,50),y.rng=c(0,75))
    bitmap("ncep.skt.jpg",type="jpeg")
    mapField(skt)
    dev.off()
    ## End(Not run)

[Package Contents]