r - plot rasterImage with different color palette and color scale -
I am trying to create a picture with
m3 < - Matrix (rnorm (100), 10, 10) Plot (NA, type = "N", Eclaim = C (1, NC), Yil = C (1, NR), axis = FALSE, ASP = 1, xlab = "", Ylab = "") M3 and LT; - Abs (M3) / Max (AB3 (M3)) raster image (M3, xleft = 1, xright = nc, ybottom = 1, ytop = nr)
but I did not manage to work it I also need a color scale like this How do anyone know how to do with a function?
Image (M3, Username = TRUE, col = "blue ")
Here's a solution using the image .scale function:
im & lt; - abs (matrix (rnorm (100), 10, 10)) mI & lt; - max (im, no. Rm = t rue) rm & lieutenant [is.na (rm)]
Comments
Post a Comment