An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101026/d44e4fef/attachment.pl>
lattice key subtitle
2 messages · Alexandru Dumitrescu, Deepayan Sarkar
2 days later
On Tue, Oct 26, 2010 at 2:49 AM, Alexandru Dumitrescu
<alexandru.dumitrescu at gmail.com> wrote:
Hello everybody, Is there a way to add a subtitle to a lattice key?
None specifically for that purpose, but latticeExtra does have a
mergedTrellisLegendGrob() function that may help:
mylegend <-
mergedTrellisLegendGrob(list(fun = draw.key,
args = list(key = simpleKey(month.name[1:3],
title = "Months"))),
list(fun = grid::textGrob,
args = list("subtitle")),
vertical = TRUE)
xyplot(1 ~ 1,
legend = list(top = list(fun = mylegend)))
mergedTrellisLegendGrob() was written as a helper function for
c.trellis(), but the plan is to eventually make it a bit more general
tool for combining legends.
-Deepayan
It is important form me that the subtitle must be linked to the key because those graphs are produced on a daily temporal scale, and the numbers of ?rectangles from the key may be different from day to day. Thank you, Alexandru Dumitrescu ? ? ? ?[[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.