Skip to content
Back to formatted view

Raw Message

Message-ID: <644e1f320904051118u1f839ec4i1b218fd57e7953@mail.gmail.com>
Date: 2009-04-05T18:18:54Z
From: jim holtman
Subject: showing values in levelplot or image
In-Reply-To: <986f0b730904050242r79b177f0le598b69374919d7a@mail.gmail.com>

I have used ltext in a panel function like in the code segment below:

print(levelplot(reslot ~ aisle + quad, reslot.df,
    col.regions=topo.colors(max(quad.POG$values)),
    panel=function(x, y, z, ...){
        panel.levelplot(x, y, z, ...)
        panel.abline(v=seq(1.5, by=1, length=length(aisleOrder)),
               h=seq(1.5, by=1, length=26), col='gray')
        ltext(x, y, z, col='red', font=1)
    },


On Sun, Apr 5, 2009 at 5:42 AM, Ken Wilson <kwil342 at gmail.com> wrote:
> I am trying to visualize a 2D matrix, with some auxiliary labels associated
> with each rectangle in the chart. The image command and levelplot in the
> lattice package map data to colors, but I couldn't find any option to
> specify values I want to show. Is there an easy way to do this?
>
> Thanks,
> Ken
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?