uncan
-Original Message-
From: Richard Kwock [mailto:richardkw...@gmail.com]
Sent: Saturday, 2 November 2013 02:31
To: Duncan Mackay
Cc: R
Subject: Re: [R] Lattice Legend/Key by row instead of by column
Hi Duncan,
Thanks for that template. Not quite the solution I was hoping for, but
2, col = 4)
> foo <- placeGrob(foo,
> textGrob(lab = "The Beatles"),
> row = 1, col = 6)
>
> xyplot(1 ~ 1, legend = list(top = list(fun = foo)))
>
> In my case I changed "strwidth" to "cm" for the text as I
y of New England
Armidale NSW 2351
Email: home: mac...@northnet.com.au
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Richard Kwock
Sent: Friday, 1 November 2013 06:42
To: R help
Subject: [R] Lattice Legend/Key by row instead of by
Hi All,
I am having some trouble getting lattice to display the legend names by row
instead of by column (default).
Example:
library(lattice)
set.seed(456846)
data <- matrix(c(1:10) + runif(50), ncol = 5, nrow = 10)
dataset <- data.frame(data = as.vector(data), group = rep(1:5, each = 10),
time
4 matches
Mail list logo