[R] Trellis dotplot label keys (update)

deepayan.sarkar at gmail.com deepayan.sarkar at gmail.com
Thu Oct 25 23:16:13 CEST 2007

On 10/25/07, Omar Baqueiro <obaqueiro at gmail.com> wrote:
> Hi again,
> After playing a bit further, I have got the dotplot to put different
> symbols using  pch = c(1,2,3,4,5), however, the symbols do not appear
> in the label, where I still get only circles of different colors!!!

The easiest way is:

trellis.device(color = FALSE)

## code (same for color and b&w)
dotplot(variety ~ yield | site, data = barley,
        groups = year, auto.key = list(space = "right"),
        xlab = "Barley Yield (bushels/acre) ",
        aspect=0.5, layout = c(1,5))

Does this do what you want?


More information about the R-help mailing list