Re: [R] Lattice Legend/Key by row instead of by column

2013-11-01 Thread Duncan Mackay
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

Re: [R] Lattice Legend/Key by row instead of by column

2013-11-01 Thread Richard Kwock
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

Re: [R] Lattice Legend/Key by row instead of by column

2013-10-31 Thread Duncan Mackay
(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 was cramped for space HTH Duncan Duncan Mackay Department of Agronomy and Soil Science Universit

[R] Lattice Legend/Key by row instead of by column

2013-10-31 Thread Richard Kwock
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

[R] Lattice legend

2011-06-14 Thread Julio Rojas
Dear all, I have been working in a plot based on figure 5.6 of the Lattice book (http://lmdvr.r-forge.r-project.org/figures/figures.html). I have already modified it to include the size of the circles as another variable, but I would like to modify the legend to show it (like they do it in http

[R] lattice legend

2010-06-25 Thread sethandmelva
The solution Felix suggested worked: It was indeed helpful to include the line par.setttings=list(superpose.symbol=sup.sym) while using.auto key with a customized symbol list in lattice. Thanks Felix! Seth [[alternative HTML version deleted]] ___

Re: [R] Lattice legend

2010-06-22 Thread Felix Andrews
2010/6/23 Seth W Bigelow : >> "with(alt.data[[which.packet()[1]]]" statements. It all graphs out >> beautifully, but none of the usual tricks to get the proper legend to > plot >> are working, i.e., using auto.key, key, etc. You haven't told us exactly what you mean by "proper legend", but it is g

Re: [R] Lattice legend

2010-06-22 Thread Seth W Bigelow
st( text = c("heavy thin","light thin", "control"," group"), columns=2, points=list(pch=sup.sym) ), aspect="xy") graf Dr. Seth W. Bigelow Biologist, USDA-FS Pacific Southwest Resear

[R] Lattice legend

2010-06-22 Thread Seth W Bigelow
I have a moderately complex graph with three panels. There are data points plotted, and fitted lines are added using a panel function, which includes "with(alt.data[[which.packet()[1]]]" statements. It all graphs out beautifully, but none of the usual tricks to get the proper legend to plot ar