Re: [R] Anybody has ever met the problem to add a legend to a figure generated by image()

2007-10-12 Thread hadley wickham
On 10/12/07, Bert Gunter <[EMAIL PROTECTED]> wrote: > ?levelplot() is the standard lattice package version of image and > automatically generates a legend. > > Note: if the image is expressed as a matrix, X, of nrow x ncol values, then > (as in image()) then levelplot should be invoked with: > > r

Re: [R] Anybody has ever met the problem to add a legend to a figure generated by image()

2007-10-12 Thread Bert Gunter
ent: Friday, October 12, 2007 6:05 AM To: zhijie zhang Cc: [EMAIL PROTECTED] Subject: Re: [R] Anybody has ever met the problem to add a legend to a figure generated by image() have you tried the function image.plot in the package fields? On Fri, 12 Oct 2007, zhijie zhang wrote: > Dear friends

Re: [R] Anybody has ever met the problem to add a legend to a figure generated by image()

2007-10-12 Thread Katharine Mullen
have you tried the function image.plot in the package fields? On Fri, 12 Oct 2007, zhijie zhang wrote: > Dear friends, > Anybody has ever met the problem to add a legend to a figure generated by > image()? I have three variables,x,y and z. > x and y are the coordinates, and z is the third value

[R] Anybody has ever met the problem to add a legend to a figure generated by image()?

2007-10-12 Thread zhijie zhang
Dear friends, Anybody has ever met the problem to add a legend to a figure generated by image()? I have three variables,x,y and z. x and y are the coordinates, and z is the third values. we can use image(x, y, z,...) to generate a figure according to the z-values, but the problem is the figure le