Package sspline. R topics documented: February 20, 2015

Similar documents
The sspline Package. October 11, 2007

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

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

Package gains. September 12, 2017

Package freeknotsplines

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

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

Package fso. February 19, 2015

Package ExceedanceTools

Package rknn. June 9, 2015

Package rpst. June 6, 2017

Package nprotreg. October 14, 2018

Package msgps. February 20, 2015

Package Daim. February 15, 2013

Package osrm. November 13, 2017

Package metaheur. June 30, 2016

Package hgam. February 20, 2015

Package ConvergenceClubs

Package SAM. March 12, 2019

Package cosinor. February 19, 2015

Package MixSim. April 29, 2017

Package weco. May 4, 2018

Package CLA. February 6, 2018

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

Package svmpath. R topics documented: August 30, Title The SVM Path Algorithm Date Version Author Trevor Hastie

Package TVsMiss. April 5, 2018

Package mrbsizer. May 2, 2018

Package intccr. September 12, 2017

Package kofnga. November 24, 2015

Package cwm. R topics documented: February 19, 2015

Package svalues. July 15, 2018

Package SSRA. August 22, 2016

Package Funclustering

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

Package datasets.load

Package RNAseqNet. May 16, 2017

Package preprosim. July 26, 2016

Package JOP. February 19, 2015

Package SmoothHazard

Package mlegp. April 15, 2018

Package clustmixtype

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

Package mixphm. July 23, 2015

Package pwrrasch. R topics documented: September 28, Type Package

Package flam. April 6, 2018

Package RGraphics. March 11, 2014

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

Package globe. May 12, 2017

Package GLDreg. February 28, 2017

Package CepLDA. January 18, 2016

Package OLScurve. August 29, 2016

Package cgh. R topics documented: February 19, 2015

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

Package Rramas. November 25, 2017

Package clustering.sc.dp

Package sure. September 19, 2017

Package listdtr. November 29, 2016

Package gwrr. February 20, 2015

Package iclick. R topics documented: February 24, Type Package

Package qrfactor. February 20, 2015

Package TANDEM. R topics documented: June 15, Type Package

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

Package Rwinsteps. February 19, 2015

Package r2d2. February 20, 2015

Package mtsdi. January 23, 2018

Package StatMeasures

Package areaplot. October 18, 2017

Package robets. March 6, Type Package

Package marinespeed. February 17, 2017

Package sciplot. February 15, 2013

Package FWDselect. December 19, 2015

Package wskm. July 8, 2015

Package sbrl. R topics documented: July 29, 2016

Package gmt. February 20, 2015

Package prettygraphs

Package longclust. March 18, 2018

Package microbenchmark

Package CGP. June 12, 2018

Package gppm. July 5, 2018

Package spark. July 21, 2017

Package queuecomputer

Package lvplot. August 29, 2016

Package ECctmc. May 1, 2018

Package swissmrp. May 30, 2018

Package geneslope. October 26, 2016

Package robustgam. February 20, 2015

Package pvclust. October 23, 2015

Package mpm. February 20, 2015

Package maboost. R topics documented: February 20, 2015

Package qvcalc. R topics documented: September 19, 2017

Package lmesplines. R topics documented: February 20, Version

Package smoothr. April 4, 2018

Package rnrfa. April 13, 2018

Package splines2. June 14, 2018

Package strat. November 23, 2016

Package glmnetutils. August 1, 2017

Package replicatedpp2w

Package CuCubes. December 9, 2016

Package HMMCont. February 19, 2015

Package RCA. R topics documented: February 29, 2016

Transcription:

Package sspline February 20, 2015 Version 0.1-6 Date 2013-11-04 Title Smoothing Splines on the Sphere Author Xianhong Xie <xianhong04@gmail.com> Maintainer Xianhong Xie <xianhong04@gmail.com> Depends R (>= 2.10) R package for computing the spherical smoothing splines License GPL (>= 2) URL http://www.stat.wisc.edu/~xie LazyData true LazyDataCompression gzip NeedsCompilation yes Repository CRAN Date/Publication 2013-11-05 07:53:31 R topics documented: map.world.......................................... 2 plot.smooth.sspline..................................... 2 predict.smooth.sspline................................... 4 print.smooth.sspline..................................... 5 smooth.sspline....................................... 6 station............................................ 7 WT6367........................................... 8 WT9397........................................... 9 WTdiff........................................... 10 Index 11 1

2 plot.smooth.sspline map.world World Map Sketch the continental boundary to give a rough idea of the position on the world. map.world(add=false, main="",...) 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 NULL Original in S by Steve Wofsy <<scw@io.harward.edu>>, ported to R by Xianhong Xie. 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. ## S3 method for class smooth.sspline plot(x, lon, lat, main="", xlab="longitude", ylab="latitude", key.title="temp\n(deg)",...)

plot.smooth.sspline 3 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. NULL Note The longitudes and latitudes are measured in degrees. Xianhong Xie See Also predict.smooth.sspline 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")

4 predict.smooth.sspline predict.smooth.sspline Spherical Smoothing Spline Prediction Make prediction on the sphere using the information got from a smooth.sspline object. ## S3 method for class smooth.sspline predict(object, lon, lat, grid=false,...) 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 Details It calls Fortran subroutine with the.fortran interface. 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. Xianhong Xie References Grace Wahba (1981), Spline Interpolation and Smoothing on the Sphere, SIAM J. SCI. STAT. COMPUT. See Also smooth.sspline

print.smooth.sspline 5 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. ## S3 method for class smooth.sspline print(x,...) ## S3 method for class smooth.sspline summary(object,...) x smooth.sspline objects object smooth.sspline objects... other parameters, not used For print.smooth.sspline, a smooth.sspline object; for summary.smooth.sspline, NULL. Xianhong Xie subdat <- WT6367[sample(nrow(WT6367), 200), 2:4] splobj <- smooth.sspline(lon, lat, avgt) print(splobj) summary(splobj)

6 smooth.sspline 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. lon lat y smooth.sspline(lon, lat, y, m = 2, smth = 0, lambda = 0) numeric vector, the longitudes numeric vector, the latitudes numeric vector, the observations at (lon, lat) m integer, order of smoothing, takes value from 1 to 10. Default to 2 smth Details method for choosing the smoothing parameter: 0, gcv method; 1, user specified. Default to 0 lambda used only when smth = 1. It calls Fortran subroutine with the.fortran interface. 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 Note The longitudes and latitudes are measured in degrees.

station 7 Xianhong Xie References Grace Wahba (1981), Spline Interpolation and Smoothing on the Sphere, SIAM J. SCI. STAT. COMPUT. 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",...) 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. NULL

8 WT6367 Note The longitudes and latitudes are measured in degrees. Xianhong Xie See Also map.world subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:3] station(lon, lat) 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). WT6367 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).

WT9397 9 Source The Global Historical Climatology Network (GHCN) http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=ghcn.html ## Fit a smoothing spherical spline with part of the data subdat <- WT6367[sample(nrow(WT6367), 200), 2:4] smooth.sspline(lon, lat, avgt) 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). WT9397 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

10 WTdiff ## Fit a smoothing spherical spline with part of the data subdat <- WT9397[sample(nrow(WT9397), 200), 2:4] smooth.sspline(lon, lat, avgt) WTdiff World Average Winter Temperature Change (1963-1967 Vs 1993-1997) Format Source 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). WTdiff 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. The Global Historical Climatology Network (GHCN) http://www.ncdc.noaa.gov/cgi-bin/res40.pl?page=ghcn.html ## Fit a smoothing spherical spline with part of the data subdat <- WTdiff[sample(nrow(WTdiff), 200), 2:4] smooth.sspline(lon, lat, avgd)

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