proportMapDAS {DASplusR}R Documentation

Proportional dot map

Description

Generates a proportional dot map.

Usage

proportMapDAS(dataset,x,y,var,type=c("linear","exponential"),
   color="black",radi=10000, S=9,s=0.9,wa=0,wb=0.95,
   wc=0.05,minsize=1,maxsize=3,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,
   frame=FALSE,addP=FALSE)

Arguments

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
type character; "linear" or "exponential"
color character; color which should be used for the dots
radi numeric; radius of the lagest dot in the map
S numeric; relative radius of the largest dot
s numeric; relative radius of the smallest dot
wa,wb,wc numeric; weights for 0 to 1; the weights must sum up to 1
minsize numeric; minimal size if type is linear
maxsize numeric; maximal size if type is linear
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 type for the xlabel
font.ylab numeric; font type for the ylabel
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
frame logical; if TRUE a frame is plotted
addP logical; if TRUE the plot is added to an existing one

Details

If type is linear the diameters of the dots grow linear with the values of var from minsize to maxsize. If type is exponential the diameters grow exponential in relation to the values of var. The exponential growing dot map needs the arguments radi, s, S, and weights wa, wb, wc. For more details see Gustavsson, N., Lampio, E. and Tarvainen, T. (1997) Visualization of geochemical data on maps at the Geological Survey of Finland. Journal of Geochemical Exploration, 59(3):197-207.

If any boundary of the coordinates given by xMin,xMax, yMin, yMax the map is generated from the corresponding values.

Author(s)

Löffler

See Also

'plotlegend','growingDotLegend','SmoothLegend'

Examples

# require(DASplusR7)
# DefaultSymbolSets()
# data(KOLA95_C2MM)
# proportMapDAS(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",var="Al",
#   type="exponential",wa=0,wb=0.95,wc=0.05,
#   radi=10000,S=9,s=0.9,xMin=NA,xMax=NA,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)
# axis(1,labels=TRUE,font=1,cex.axis=1)
# axis(2,labels=TRUE,font=1,cex.axis=1)
# growingDotLegend(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",
#   var="Al",type="exponential",radi=10000,S=9,s=0.9,
#   title="Al [mg/kg]",leg.position.x=832864,
#   leg.position.y=7882817,leg.cex=0.8,
#   xMin=NA,xMax=NA,yMin=NA,yMax=NA,
#   x.log=FALSE,y.log=FALSE)

[Package DASplusR version 0.0-1 Index]