Re: [R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Dan Bolser
On 04/04/07, Sundar Dorai-Raj <[EMAIL PROTECTED]> wrote: > > > Dan Bolser said the following on 4/4/2007 7:52 AM: > > My question was thus; > > > > Given > > > > library(lattice) > > my.m <- matrix(seq(1,100,1),nrow=10) > > levelplot(my.m) > > > > > > How can I add a diagonal line onto the re

Re: [R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Sundar Dorai-Raj
Dan Bolser said the following on 4/4/2007 7:52 AM: > My question was thus; > > Given > > library(lattice) > my.m <- matrix(seq(1,100,1),nrow=10) > levelplot(my.m) > > > How can I add a diagonal line onto the resulting 'color square'? > > The answer I found was to hack the 'panel.levelp

Re: [R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Dan Bolser
My question was thus; Given library(lattice) my.m <- matrix(seq(1,100,1),nrow=10) levelplot(my.m) How can I add a diagonal line onto the resulting 'color square'? The answer I found was to hack the 'panel.levelplot' function. Here is the diff between the old (panel.levplot) and the new (

Re: [R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Charilaos Skiadas
On Apr 4, 2007, at 7:19 AM, Dan Bolser wrote: > Hi, > > I am generating a beautiful plot with the 'levelplot' function over my > square matrix of data. In order to help visualise the data I would > like to draw a diagonal line on the matrix. Because the plot is > actually a trellis object, I am ha

[R] Annotate a levelplot (using abline) - Difficulty with trellis.

2007-04-04 Thread Dan Bolser
Hi, I am generating a beautiful plot with the 'levelplot' function over my square matrix of data. In order to help visualise the data I would like to draw a diagonal line on the matrix. Because the plot is actually a trellis object, I am having difficulty working out how to do this. I have been re