this code given bellow will read a binary file and simply visualize the map as shown bellow
Here is a link to the file
firsrow <- file("C:\\LaiAverage_2011_WGS84_50km.img", "rb")
row1 = readBin(firsrow, integer(), size = 2, n = 720*360, signed = F)
y <- matrix(data = row1, ncol = 360, nrow = 720)
image(t(t(y)), ylim=c(1,0)).
can anyone help me to visualize it like this instead:
Your question is quite broad and vague, therefore my answer will share those qualities. In addition, I will focus on a ggplot2 based solution.
scale_fill_*, where * is e.g.continuousorgradient.scale_{x,y}_*, e.g. thelabelsandbreaksarguments.ggsavefor this.