Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

Move the position of colorbar/ colorkeys in levelplot

$
0
0

I have plotted a stack of raster using the function 'levelplot' script as below:

library(raster)
library(rasterVis)
ras <- list.files("/filepath/", pattern = "\\.tif$", full=TRUE)
s <- stack(ras)
> levelplot(s, colorkey = list(space ="bottom",height=1, width=1),
names.attr=c("2011","2012","2013", "2014")))

Figure of Levelplot

The problem with the plot is that the label of x-axis label 'Longitude' overlaps with the colorbar/ colorkeys of the plot. Is it possible to move the position of colorkeys a little below the label 'Longitude'?

Thanks


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>