grid.grab() captures all of the current viewports and stores them as a
grob. In theory, and often in practice, you can use grid.grab() to store
an image now for drawing later on. But I have noticed some odd behavior
of grid.grab() when working with lattice output. It is all related to
the wra
>> I have a multi-panel lattice figure. It has an even number of
>> equal-width columns. I would like to center text across the columns.
>>
>> The xlab argument often handles this job nicely. But I want a more
>> flexible solution. (I have many strings and want to position them at
>> different heig
I have a multi-panel lattice figure. It has an even number of equal-width
columns. I would like to center text across the columns.
The xlab argument often handles this job nicely. But I want a more flexible
solution. (I have many strings and want to position them at different heights,
but alwa
> In your actual use case, are there any annotations outside the panel
> (tick marks, labels, etc.)? Things would be much simpler if not (as in
> your example). In that case, just call the suitable panel function
> after setting up the proper axis limits (after doing pushViewport or
> seekViewport
Hello,
I have two lattice plots for which panel.height is fixed. I am trying to
position them in a column so that there is exactly half an inch of vertical
space between them. This would be a simple task if I were not fixing
panel.height. But given that I am, I can't find a way to put exact
The strip argument to panel.xyplot seems to be ignored for
single-panel plots.
The workaround is to give it a one-level factor:
library(lattice)
data(Chem97, package = "mlmRev")
Chem97$what = as.factor("strip text")
densityplot(~ gcsescore|what, data = Chem97)
Thank you. That works.
Jo
The strip argument to panel.xyplot seems to be ignored for single-panel
plots. Here is an example:
data(Chem97, package = "mlmRev")
myStrip <- function(...) { ltext(.5, .5, 'strip text') }
densityplot(~ gcsescore, data = Chem97, strip=myStrip)
The figure is printed with no strip. The
I often use Dotplot() from the Hmisc package to construct dotplots.
Typically, I plot multiple symbols on each line of a dotplot.
Sometimes these symbols overlap. In these cases, I would like to
eliminate the overlap by slightly adjusting the vertical placement
of the plotted symbols. Is there
I'm using lattice to draw a multi-panel figure: 5 rows, 4 columns. The y-axis
for each panel is determined by
yaxs<- list(draw=T
, labels=c(0, '.5', '1', '1.5')
, at=c(0, .5, 1, 1.5)
, tck=c(.4, 0)
>I'm using lattice to create a multi-panel figure. I would like
> to draw each panel's y-axis ticks and labels on the right-hand
> side of the panel. Ordinarily, I would do this by specifying
> scales=list(y=list(draw=T, alternating=2)). But in this case, I am
> using relation="sliced"
Hello,
I'm using lattice to create a multi-panel figure. I would like
to draw each panel's y-axis ticks and labels on the right-hand
side of the panel. Ordinarily, I would do this by specifying
scales=list(y=list(draw=T, alternating=2)). But in this case, I am
using relation="sliced" t
11 matches
Mail list logo