Skip to content
Prev 272763 / 398498 Next

my R query

I have made a level plot in R of a variable using the lattice package.
This grid corresponds to South Asia. I am only interested in viewing
the values of this variable (aerosol optical depth) for certain
countries in South Asia. I have a dummy variable that takes the value
1 for the countries I am interested in and 0 otherwise. Is it possible
for me to colour this part of the grid black or any other colour?



Here is my R code:

levelplot(aod ~ longitude + latitude | factor(day), data = aod_Jan,
  aspect="iso", contour = TRUE, layout=c(1,1))