[R] Color index in image function
Bernardo Rangel Tura
tura at centroin.com.br
Fri Sep 11 13:36:29 CEST 2009
On Thu, 2009-09-10 at 05:27 -0700, FMH wrote:
> Thank you for the scripts, but the label and the values in the x and y-axis suddently dissapear even the 'axis' function is used as stated in the command below. Could you help on this?
>
> axis(1, at = seq(100, 800, by = 100))
> axis(2, at = seq(100, 600, by = 100))
>
> How could i add a tittle on top of color index?
>
> Thank you
> Fir
Try this
Brazilan.Pallete <- colorRampPalette(c("green","yellow", "blue"))
require(fields)
image.plot(volcano, col = Brazilan.Pallete(50), legend.lab="Scale")
contour(volcano, levels = seq(90, 200, by = 5), add = TRUE)
--
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil
More information about the R-help
mailing list