[R] image plot with multiple x values
Daniel Lakeland
dlakelan at street-artists.org
Fri Aug 17 21:35:51 CEST 2007
On Fri, Aug 17, 2007 at 07:51:59PM +0100, baptiste Augui? wrote:
> Hi,
>
> New to R, I don't find a way to plot the following data with image():
...
> This doesn't give what I want, as the x axis needs to be shifted as
> we go from line to the following. (probably clearer if you plot
> matplot(x,z): the curves are shifted)
Perhaps you could plot "points" each of which would be a colored
square, at the locations given by x,y ??
along the lines of
plot(y~x,col=z,pch=15,cex=5)
/* pch = 15 plots a filled square, cex=5 makes the square bigger, you
could try different values of cex*/
--
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan
More information about the R-help
mailing list