Hello,

You are using latticeExtra so the easiest way is with layer():

levelplot(....) + layer({
  SpatialPolygonsRescale(layout.north.arrow(),
                         offset = c(439000,3368000),
                         scale = 4000)
  SpatialPolygonsRescale(layout.scale.bar(),
                         offset = c(460000,3352000),
                         scale = 5000,
                         fill=c("transparent","black"))
  sp.text(c(460000,3351500),"0")
  sp.text(c(465000,3351500),"100 m")
})

Best,

Oscar.

2013/1/19 Jd Devkota <janesh.devkota@gmail.com>

> l2 = list("SpatialPolygonsRescale", layout.north.arrow(), offset =
> c(439000,3368000), scale = 4000)
> l3 = list("SpatialPolygonsRescale", layout.scale.bar(), offset =
> c(460000,3352000), scale = 5000, fill=c("transparent","black"))
> l4 = list("sp.text",c(460000,3351500),"0")
> l5 = list("sp.text",c(465000,3351500),"100 m")
>

	[[alternative HTML version deleted]]

