The sspline Package. October 11, 2007

Similar documents
Package sspline. R topics documented: February 20, 2015

Package rgcvpack. February 20, Index 6. Fitting Thin Plate Smoothing Spline. Fit thin plate splines of any order with user specified knots

The gmt Package. October 19, URL

Package nprotreg. October 14, 2018

Package Mondrian. R topics documented: March 4, Type Package

Package ExceedanceTools

NONPARAMETRIC REGRESSION SPLINES FOR GENERALIZED LINEAR MODELS IN THE PRESENCE OF MEASUREMENT ERROR

Package munfold. R topics documented: February 8, Type Package. Title Metric Unfolding. Version Date Author Martin Elff

Package osrm. November 13, 2017

Getting Started with MapInfo Professional Hands On Session 1D

Package fso. February 19, 2015

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Mapping Great Circles Tutorial

Package feature. R topics documented: October 26, Version Date

Package rknn. June 9, 2015

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package gains. September 12, 2017

Package geofd. R topics documented: October 5, Version 1.0

Package globe. May 12, 2017

ITACS : Interactive Tool for Analysis of the Climate System

The RcmdrPlugin.HH Package

Package CLA. February 6, 2018

Section 18-1: Graphical Representation of Linear Equations and Functions

Package mrbsizer. May 2, 2018

The LDheatmap Package

Package Funclustering

The supclust Package

Package GLDreg. February 28, 2017

Package freeknotsplines

Package mixphm. July 23, 2015

Package areaplot. October 18, 2017

Package feature. R topics documented: July 8, Version Date 2013/07/08

Package StatMeasures

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

PyNGL & PyNIO Geoscience Visualization & Data IO Modules

Slide 1 / 96. Linear Relations and Functions

Package prettygraphs

Package multigraph. R topics documented: January 24, 2017

Package metaheur. June 30, 2016

Package Daim. February 15, 2013

Interpolation. Computer User Training Course Paul Dando. User Support. ECMWF 25 February 2016

Package quantsmooth. R topics documented: May 4, Type Package

INTRODUCTION TO R. Basic Graphics

Package ConvergenceClubs

Package RGraphics. March 11, 2014

Geographic Information System and its Application in Hydro-Meteorology Exercises using SavGIS

Package preprosim. July 26, 2016

Package marinespeed. February 17, 2017

Package ToTweedieOrNot

Package HMRFBayesHiC

Bar Charts and Frequency Distributions

Package MeanShift. R topics documented: August 29, 2016

Package macorrplot. R topics documented: October 2, Title Visualize artificial correlation in microarray data. Version 1.50.

The nor1mix Package. August 3, 2006

Excel Functions & Tables

Package MixSim. April 29, 2017

Package gwrr. February 20, 2015

In this exercise, you ll create a netcdf raster layer using the variable tmin. You will change the display by selecting a different time step.

Package SmoothHazard

The pspline Package. August 4, Author S original by Jim Ramsey R port by Brian Ripley

Package sciplot. February 15, 2013

Package mixexp. February 15, 2013

Package multigraph. R topics documented: November 1, 2017

Package gmt. February 20, 2015

Package sure. September 19, 2017

plot(seq(0,10,1), seq(0,10,1), main = "the Title", xlim=c(1,20), ylim=c(1,20), col="darkblue");

Data Management in BMKG. Database Center, BMKG July 11, 2017

Package skm. January 23, 2017

Package smoothr. April 4, 2018

Data Representation in Visualisation

Lesson 8 Introduction to Quadratic Functions

CS 109 C/C ++ Programming for Engineers w. MatLab Summer 2012 Homework Assignment 4 Functions Involving Barycentric Coordinates and Files

The gld Package. April 6, 2006

The som Package. September 19, Description Self-Organizing Map (with application in gene clustering)

The nor1mix Package. June 12, 2007

The cmprsk Package. January 1, 2007

Package pca3d. February 17, 2017

Package pampe. R topics documented: November 7, 2015

Package qvcalc. R topics documented: September 19, 2017

Overview of the EMF Refresher Webinar Series. EMF Resources

Using Built-in Plotting Functions

Package JOP. February 19, 2015

Package clustmixtype

Geographic Information Systems. using QGIS

Practice Test (page 391) 1. For each line, count squares on the grid to determine the rise and the run. Use slope = rise

Package MPCI. October 25, 2015

MATLAB INTRODUCTION. Matlab can be used interactively as a super hand calculator, or, more powerfully, run using scripts (i.e., programs).

Package Rwinsteps. February 19, 2015

Rotated earth or when your fantasy world goes up side down

There is also a more in-depth GUI called the Curve Fitting Toolbox. To run this toolbox, type the command

Using the CMA Warp Editor

Package RcmdrPlugin.HH

Package grec. R topics documented: August 13, Type Package

Package rnrfa. April 13, 2018

GAMs semi-parametric GLMs. Simon Wood Mathematical Sciences, University of Bath, U.K.

Package beanplot. R topics documented: February 19, Type Package

Revision Topic 11: Straight Line Graphs

Package OptimaRegion

Package FCGR. October 13, 2015

The BHH2 Package. July 27, 2006

Transcription:

The sspline Package October 11, 2007 Version 0.1-5 Date 2007/10/10 Title Smoothing Splines on the Sphere Author Xianhong Xie <xie@stat.wisc.edu> Maintainer Xianhong Xie <xie@stat.wisc.edu> Depends R (>= 0.99) R package for Computing the Spherical Smoothing Splines License GPL version 2 or newer URL http://www.stat.wisc.edu/~xie R topics documented: WT6367........................................... 2 WT9397........................................... 3 WTdiff........................................... 4 gwm............................................. 5 map.world.......................................... 5 plot.smooth.sspline..................................... 6 predict.smooth.sspline................................... 7 print.smooth.sspline..................................... 8 rmp............................................. 9 smooth.sspline....................................... 10 station............................................ 11 Index 13 1

2 WT6367 WT6367 World Average Winter Temperature from 1963-1967 The WT6367 data frame has 1391 rows and 4 columns. It contains the average temperature from 1963 to 1967 for those stations having non-missing observations on the winter (Dec-Feb) for ten years (1963-1967 and 1993-1997). Format This data frame contains the following columns: recid a numeric vector containing the coded information of the stations (length 11). The first three digits represent the country code; the next five digits, the station number; the last three digits, whether a station is a WMO staion or close to one. lon a numeric vector containing the longitudes (in degrees) of the stations. lat a numeric vector containing the latitudes (in degrees) of the stations. avgt a numeric vector containing the average temperatures for the stations (rounded to the second decimal point). Source The Global Historical Climatology Network (GHCN) http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=ghcn.html data(wt6367) ## Fit a smoothing spherical spline with part of the data subdat <- WT6367[sample(nrow(WT6367), 200), 2:4] smooth.sspline(lon, lat, avgt)

WT9397 3 WT9397 World Average Winter Temperature from 1993-1997 The WT9397 data frame has 1391 rows and 4 columns. It contains the average temperature from 1993 to 1997 for those stations having non-missing observations on the winter (Dec-Feb) for ten years (1963-1967 and 1993-1997). Format This data frame contains the following columns: recid a numeric vector containing the coded information of the stations (length 11). The first three digits represent the country code; the next five digits, the station number; the last three digits, whether a station is a WMO staion or close to one. lon a numeric vector containing the longitudes (in degrees) of the stations. lat a numeric vector containing the latitudes (in degrees) of the stations. avgt a numeric vector containing the average temperatures for the stations (rounded to the second decimal point). Source The Global Historical Climatology Network (GHCN) http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=ghcn.html data(wt9397) ## Fit a smoothing spherical spline with part of the data subdat <- WT9397[sample(nrow(WT9397), 200), 2:4] smooth.sspline(lon, lat, avgt)

4 WTdiff WTdiff World Average Winter Temperature Change (1963-1967 Vs 1993-1997) The WTdiff data frame has 1391 rows and 4 columns. It contains the average temperature change from 1963-1967 to 1993-1997 for those stations having non-missing observations on the winter (Dec-Feb) for ten years (1963-1967 and 1993-1997). Format This data frame contains the following columns: recid a numeric vector containing the coded information of the stations (length 11). The first three digits represent the country code; the next five digits, the station number; the last three digits, whether a station is a WMO staion or close to one. lon a numeric vector containing the longitudes (in degrees) of the stations. lat a numeric vector containing the latitudes (in degrees) of the stations. avgd a numeric vector containing the average temperature change from 1963-1967 to 1993-1997 for the stations. Source The Global Historical Climatology Network (GHCN) http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=ghcn.html data(wtdiff) ## Fit a smoothing spherical spline with part of the data subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:4] smooth.sspline(lon, lat, avgd)

gwm 5 gwm Internal Data Used by map.world Function It stores longitudes and latitudes used for drawing the world map. data(gwm) Format A data frame with 6920 observations on the following 2 variables. lon longitudes on earth lat latitudes on earth Source S Archive under http://lib.stat.cmu.edu data(gwm) map.world World Map Sketch the continental boundary to give a rough idea of the position on the world. map.world(add=false, main="",...) Arguments add main a logical scalar, if TRUE, add a map to the existing plot; otherwise, plot a new world map a character vector, the main title of the plot... other parameters needed to pass to the lines function

6 plot.smooth.sspline Value NULL Author(s) Original in S by Steve Wofsy < scw@io.harward.edu >, ported to R by Xianhong Xie < xie@stat.wisc.edu >. References S Archive under http://lib.stat.cmu.edu map.world(main = "The World Map") plot.smooth.sspline Plot a Smooth.sspline Object Plot a smoothing spherical spline using color to represent the function value. plot.smooth.sspline(x, lon, lat, main="", xlab="longitude", ylab="latitude", key.title="temp\n(deg)",...) Arguments x a smooth.sspline object lon the longitudes on which the function values will be calculated lat the latitudes on which the function values will be calculated main the main title of the plot xlab the x-axis label of the main plot ylab the y-axis label of the main plot key.title the title for the colored key... other plotting parameters, such as lwd, asp, and... Details It calls predict.smooth.sspline and filled.contour.

predict.smooth.sspline 7 Value Note NULL The longitudes and latitudes are measured in degrees. Author(s) See Also Xianhong Xie predict.smooth.sspline data(wtdiff) subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:4] splobj <- smooth.sspline(lon, lat, avgd) plot(splobj, lon=seq(-180, 180, len=50), lat=seq(-90, 90, len=25), main="world Average Temperature Change") predict.smooth.sspline Spherical Smoothing Spline Prediction Make prediction on the sphere using the information got from a smooth.sspline object. predict.smooth.sspline(object, lon, lat, grid=false,...) Arguments object a smooth.sspline object lon the longitudes on which the prediction is to be made lat the latitudes on which the prediction is to be made grid whether the prediction is on a grid... other parameters, not used

8 print.smooth.sspline Details It calls Fortran subroutine with the.fortran interface. Value If grid = TRUE, return a matrix with dimension (length(lon), length(lat)); otherwise, return a vector of length = length(lon). Note The longitudes and latitudes are measured in degrees. Author(s) Xianhong Xie References Grace Wahba (1981), Spline Interpolation and Smoothing on the Sphere, SIAM J. SCI. STAT. COMPUT. See Also smooth.sspline data(wt9397) subdat <- WT9397[sample(nrow(WT9397), 200), 2:4] splobj <- smooth.sspline(lon, lat, avgt) predict(splobj, lon=seq(-180,180,len=50), lat=seq(-90,90,len=25), grid=true) print.smooth.sspline Display a Smooth.sspline Object The print and summary methods for smooth.sspline object.

rmp 9 print.smooth.sspline(x,...) summary.smooth.sspline(object,...) Arguments Value x object smooth.sspline objects smooth.sspline objects... other parameters, not used For print.smooth.sspline, a smooth.sspline object; for summary.smooth.sspline, NULL. Author(s) Xianhong Xie data(wt6367) subdat <- WT6367[sample(nrow(WT6367), 200), 2:4] splobj <- smooth.sspline(lon, lat, avgt) print(splobj) summary(splobj) rmp Internal Data Used by map.world Function It stores vertex index info used for drawing the world map. data(rmp) Format A data frame with 54 observations on the following variable. inc a numeric vector

10 smooth.sspline Source S Archive under http://lib.stat.cmu.edu data(rmp) smooth.sspline Smoothing Spline on the Sphere It fits a smoothing splines on the sphere with the smoothing parameter chosen by the generalized cross validation (GCV) criteria or given by the user. smooth.sspline(lon, lat, y, m = 2, smth = 0, lambda = 0) Arguments lon numeric vector, the longitudes lat numeric vector, the latitudes y numeric vector, the observations at (lon, lat) m integer, order of smoothing, takes value from 1 to 10. Default to 2 smth method for choosing the smoothing parameter: 0, gcv method; 1, user specified. Default to 0 lambda used only when smth = 1. Details It calls Fortran subroutine with the.fortran interface. Value A smooth.sspline object with the components lon lat obs lambda gcv varhat c d yhat call the original longitude the original latitude the original observation the lambda that minimizes the gcv score the corresponding gcv value at lambda the estimated variance the coefficient vector c for the estimated function the coefficient d for the estimated function the estimated (smoothed) observation the call to smooth.sspline

station 11 Note The longitudes and latitudes are measured in degrees. Author(s) Xianhong Xie References Grace Wahba (1981), Spline Interpolation and Smoothing on the Sphere, SIAM J. SCI. STAT. COMPUT. data(wtdiff) subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:4] smooth.sspline(lon, lat, avgd) station Distribution of the Stations on the World It gives a simple illumination on how the given (lon, lat) pairs distributes on the world. station(lon=null, lat=null, pch=24, col="blue", bg="red",...) Arguments lon numeric, the longitudes lat numeric, the latitudes pch the plotting symbol col color value or name, the color used to draw the symbol bg color value or name, the color used to fill the sumbol... other plotting parameters Details It calls the map.world to draw a world map.

12 station Value Note NULL The longitudes and latitudes are measured in degrees. Author(s) See Also Xianhong Xie < xie@stat.wisc.edu > map.world data(wtdiff) subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:3] station(lon, lat)

Index Topic aplot map.world, 5 Topic datasets gwm, 4 rmp, 9 WT6367, 1 WT9397, 2 WTdiff, 3 Topic hplot map.world, 5 plot.smooth.sspline, 5 station, 11 Topic methods plot.smooth.sspline, 5 predict.smooth.sspline, 7 print.smooth.sspline, 8 Topic smooth plot.smooth.sspline, 5 predict.smooth.sspline, 7 print.smooth.sspline, 8 smooth.sspline, 9 gwm, 4 map.world, 5, 12 plot.smooth.sspline, 5 predict.smooth.sspline, 6, 7 print.smooth.sspline, 8 rmp, 9 smooth.sspline, 7, 9 station, 11 summary.smooth.sspline (print.smooth.sspline), 8 WT6367, 1 WT9397, 2 WTdiff, 3 13