Hi, I make a function and it work, but I get a error message in the follow step: image.plot(zlim = c(0,216),legend.width=0.2,legend.only=T, horizontal=T,col=palette(),nlevel=nivcor,offset=0.7, legend.shrink=1) The error is: Error in par(old.par) : invalid value specified for graphics parameter "fig". The error appear not important, but i like to correct to eliminate de message. Any idea Thanks Ronaldo -- It now costs more to amuse a child than it once did to educate his father. -- |> // | \\ [***********************************] | ( ? ? ) [Ronaldo Reis J?nior ] |> V [UFV/DBA-Entomologia ] | / \ [36571-000 Vi?osa - MG ] |> /(.''`.)\ [Fone: 31-3899-2532 ] | /(: :' :)\ [chrysopa at insecta.ufv.br ] |>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ] | ( `- ) [***********************************] |>> _/ \_Powered by GNU/Debian Woody/Sarge