northarrow {DASplusR}R Documentation

North arrow

Description

Draw a north arrow.

Usage

northarrow(Xbottom,Ybottom,Xtop,Ytop,Xtext,Ytext,
   Alength=0.2,Aangle=15,Alwd=1,Tcex=1.5)

Arguments

Xbottom numeric; the x coordinate of the arrow shaft
Ybottom numeric; the y coordinate of the arrow shaft
Xtop numeric; the x coordinate of the arrow head
Ytop numeric; the y coordinate of the arrow head
Xtext numeric; the x coordinate of the 'N'-label
Ytext numeric; the y coordinate of the 'N'-label
Alength numeric; length of the edges of the arrow head (in inches)
Aangle angle from the shaft of the arrow to the edge of the arrow head
Tcex numeric; a numerical value giving the amount by which 'N'-label should be scaled relative to the default

Details

This function draws a north arrow from the point defined by Xbottom/Ybottom to the point defined by Xtop/Ytop. It is also drawn the letter N at the position defined by Xtext/Ytext.

See Also

'plotlegend', 'growingDotLegend', 'SmoothLegend'

Examples

require(DASplusR7)
DefaultSymbolSets()
data(KOLA95_C2MM)
map(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",var="As",
  level="Boxplot",symbolset="EDA",title="",xlabel="",
  ylabel="", cex.xlab="1",cex.ylab="1",font.xlab="1",
  font.ylab="1",margin=c(2,2,2,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)
boxplotlegend(dataset=KOLA95_C2MM,x="XCOO",y="YCOO",
  var="As",legend.title="As [mg/kg]",logscale=TRUE,
  psymb=c(286,286,305,288,288,286),
  ssize=c(1.99,1.42,0.3,1,1.4,1.99),
  scolor=c("black","black","black","black","black","black"),
  leg.position.x=822118,leg.position.y=7867069,
  y.scale=103345.875,x.scale=9232.29016644467,
  legend.cex=0.8,xMin=NA,xMax=NA,
  yMin=NA,yMax=NA,x.log=FALSE,y.log=FALSE)
scalebar(770333,7376258,min="0",middle="50",max="100",
  unit="km",title="")
northarrow(360157,7820700,360157,7889816,360157,7855695)

[Package DASplusR version 0.0-2 Index]