https://github.com/cran/fields
Raw File
Tip revision: 2a4b5cffe1902e0d2b0136705a9ed639bbab0c07 authored by Doug Nychka on 10 May 2004, 16:33:19 UTC
version 1.5
Tip revision: 2a4b5cf
US.R
"US" <-
function (xlim = c(-124.7, -67.1), ylim = c(25.2, 49.4), add = FALSE, 
shift=FALSE,    ...) 
{
    if (!exists("US.dat")) 
        data(US.dat)
if( shift){
US.dat$x[ US.dat$x<0] <- US.dat$x[ US.dat$x<0] +360}

    if (!add) {
        plot(US.dat$x, US.dat$y, ylim = ylim, xlim = xlim, xlab = "", 
            ylab = "", type = "n", xaxt = "n", yaxt = "n", ...)
    }
    lines(US.dat$x, US.dat$y, err = -1, ...)
    invisible()
}
back to top