scalebar {DASplusR} | R Documentation |
The function 'scalebar()' adds a scale bar to an existing plot.
scalebar(X,Y,min,middle,max,unit,title)
X |
numeric; the x-coordinate of the left bottom corner |
Y |
numeric; the y-coordinate of the left bottom corner |
min |
character; the label on the left side of the scalebar |
middle |
character; the label in the middle of the scalebar |
max |
character; the label on the right side of the scalebar |
unit |
character; the label next to 'max' |
title |
character; title of the scale bar |
The function 'scalebar()' adds a scale bar at the position defined by X,Y to an existing plot. The scale text is defined by the 'min', 'middle', 'max' and 'unit' argument.
'plotlegend', 'growingDotLegend', 'smoothLegend', 'northarrow'
require(DASplusR7) DefaultSymbolSets() data(KOLA95_C2MM) map(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",var="Al",level="Boxplot", symbolset="EDA",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=NA, yMin=NA, yMax=NA, x.grid=FALSE,x.grid.type=1, x.grid.color=1,x.grid.width=1, y.grid=FALSE,y.grid.type=1, y.grid.color=1,y.grid.width=1, x.log=FALSE,y.log=FALSE,frame=TRUE) scalebar(784016,7391131,min="0", middle="50", max="100", unit="km", title="Scale title")