smoothingMapDAS {DASplusR} | R Documentation |
Create a two-dimensional interpolation map.
smoothingMapDAS(dataset,x,y,var,title="",xlabel="",ylabel="", cex.xlab=1,cex.ylab=1,font.xlab=1,font.ylab=1, margin=c(5.1,4.1,4.1,2.1),xMin=NA,xMax=NA, yMin=NA,yMax=NA,x.grid=FALSE,x.grid.type=3, x.grid.color="black",x.grid.width=1,y.grid=FALSE, y.grid.type=3,y.grid.color="black",y.grid.width=1, x.log=FALSE,y.log=FALSE,resol=200, type=c("contin","percentile"), whichcol=c("gray","rainbow","rainbow.trunc", "rainbow.inv","terrain","topo"), qutiles=c(0,0.05,0.1,0.25,0.50,0.75,0.90,0.95,1), frame=FALSE,border=NULL)
dataset |
a data object of class 'DASData' or 'data.frame' |
x |
character; the object name of the x-coordinate |
y |
character; the object name of the y-coordinate |
var |
character; the object name of the spatial variable |
title |
character; map title |
xlabel |
character; a label on the x-axis |
ylabel |
character; a label on the y-axis |
cex.xlab |
numeric; a numerical value giving the amount by which xlabel text should be scaled relatively to the default |
cex.ylab |
numeric; a numerical value giving the amount by which ylabel text should be scaled relatively to the default |
font.xlab |
numeric; font for the xlabel |
font.ylab |
numeric; font for the xlabel |
margin |
numerical; a vector of the form c(bottom, left, top, right) which gives the number of lines of margin to be specified on the four sides of the plot. The default is c(5, 4, 4, 2) + 0.1. |
xMin |
numeric; value for the lower bound of the x-coordinate or NA for no boundary |
xMax |
numeric; value for the upper bound of the x-coordinate or NA for no boundary |
yMin |
numeric; value for the lower bound of the y-coordinate or NA for no boundary |
yMax |
numeric; value for the upper bound of the y-coordinate or NA for no boundary |
x.grid |
logical; if TRUE a grid on the x-axis is drawn |
x.grid.type |
numeric; line type of the grid lines |
x.grid.color |
character; line color of the grid lines |
x.grid.width |
numeric; line width of the grid lines |
y.grid |
logical; if TRUE a grid on the y-axis is drawn |
y.grid.type |
numeric; line type of the grid lines |
y.grid.color |
character; line color of the grid lines |
y.grid.width |
numeric; line width of the grid lines |
x.log |
logical; TRUE if logarithmic x-axis |
y.log |
logical; TRUE if logarithmic y-axis |
resol |
numeric; the resolution of the grid for the interpolation |
type |
character; 'percentile' or 'contin' |
whichcol |
character; color scheme - one out of: 'gray', 'rainbow', 'rainbow.trunc', 'rainbow.inv', 'terrain', 'topo' |
qutiles |
numeric; vector of the quantiles in which breakpoints for the colors are taken |
frame |
logical; if TRUE a frame is plotted |
border |
a data object for the border: a list with 2 elements, a vector of the x-values and a vector of the y-values of the polygon line |
The function 'smoothingMapDAS' generates a bivariate interpolation onto a grid for irregularly spaced input data. The resolution of grid is given by 'resol'. If 'type' is 'percentile' the breakpoints of the color are given by the quantiles given by 'qutiles' If 'type' is 'conti' the breakpoints are somewhat continous.
Löffler
'map', 'growingDot'
require(DASplusR7) DefaultSymbolSets() data(KOLA95_C2MM) smoothingMapDAS(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",var="Al", title="",xlabel="",ylabel="",cex.xlab = "1",cex.ylab="1", font.xlab="1",font.ylab="1",margin=c(5,4,4,2)+0.1, xMin=NA,xMax=,yMin=NA,yMax=NA,x.grid=FALSE,x.grid.type=1, x.grid.color="black",x.grid.width=1,y.grid=FALSE, y.grid.type=1,y.grid.color="black",y.grid.width=1, x.log=FALSE,y.log=FALSE,frame=TRUE,type="contin", whichcol="terrain",border=bor, qutiles=c(0,0.05,0.1,0.25,0.5,0.75,0.9,0.95,1),resol=400) axis(1,labels=TRUE,font=1,cex.axis=1) axis(2,labels=TRUE,font=1,cex.axis=1) smoothLegend(dataset=KOLA95_C2MM,x="XCOO",y="YCOO", var="Al",whichcol="terrain",resol=400, qutiles=c(0,0.05,0.1,0.25,0.5,0.75,0.9,0.95,1), type="contin",leg.title="Al [mg/kg]", leg.position.x=806486,leg.position.y=7755958, size=1,leg.title.cex=0.7,xMin=NA,xMax=NA,yMin=NA, yMax=NA,x.log=FALSE,y.log=FALSE) scalebar(798670,7378008,min="0",middle="50",max="100", unit="km",title="") northarrow(328752,7822450,328752,7891566,328752,7857445)