writeRaster() function wrote black and white image

I created a raster plot of ndvi image in R which is correct; however, when I tried to export it using writeRaster() function, it just saves black and white image. Why?

Note that such saved image, when I load, displays accurately.

Could you please anyone help me out?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.