[R] [lattice] how to label panels with variable value (not name)?

Tom Roche Tom_Roche at pobox.com
Sun Nov 18 22:03:30 CET 2012


https://stat.ethz.ch/pipermail/r-help/2012-November/329450.html
>> I [can now] prepare my netCDF data specifying gas concentrations over
>> a 3D space (dimensions longitude, latitude, and (vertical) level),
>> so as to call lattice::levelplot() like

>> levelplot(conc ~ lon * lat | lev, data=data.frame)

...
m
>> However I will need to [do before-and-after comparisons of that plot]
>> to the results of a reboxing, or 3D regridding, of this data[. Hence]
>> I would prefer instead to label each panel in the lattice with the
>> _value_ of [its] level (an atmospheric pressure), rather than [its]
>> name or index

https://stat.ethz.ch/pipermail/r-help/2012-November/329454.html
> see ?strip.custom in lattice

That showed me where to look in "the lattice book": see (partial)
solution to this problem, and the followup problem, @

https://stat.ethz.ch/pipermail/r-help/2012-November/329479.html

Thanks! Tom Roche <Tom_Roche at pobox.com>




More information about the R-help mailing list