Skip to content
Prev 29071 / 29559 Next

Customizing levelplot coloring scheme in r

my suggestion is:

colfunc<-colorRampPalette(c("blue","white","red"))

FPlot10 <- levelplot(FDifference5,margin=F,at=c(seq(-50,150,10)),pretty=TRUE,
col.regions=colfunc(200),...)

Adding a col.regions argument maybe solve the problem.

On Thu, Oct 13, 2022 at 6:11 AM Edzer Pebesma
<edzer.pebesma at uni-muenster.de> wrote: