Displaying 5 results from an estimated 5 matches for "framegrob".
2010 Mar 19
2
lattice grob
Dear list,
I'm trying to arrange various grid objects on a page using a
frameGrob. It works fine with basic grobs (textGrob, gTree, etc.), and
also with ggplot2 objects using the ggplotGrob() function. I am
however stuck with lattice. As far as I understand, lattice produces a
list of class trellis, which is eventually displayed using the
plot.trellis method. I am not sure if/ho...
2008 Sep 27
2
multiple plots - editing ggplot2 plot
Hi All,
I am trying to build a composite plot, with multiple categories, using
ggplot2.
In principle, it could be done using facetting, but I do not seem to be able
to get past the defaults, so I try building each plot separately, then
putting them all together using frameGrob and placeGrob.
For this, I need to know how to:
1) format the legend with a different layout (e.g 2 rows by 2 columns,
rather than using the vertical orientation only;
2) draw the numbers on top of the bars (the issue is locating the bars, of
course);
3) extract the definition of the axes (scales,...
2009 Sep 19
1
matrix operations on grobs and grid units
...f grobs
wg <- lapply(lg, grobWidth) # list of grob widths
hg <- lapply(lg, grobHeight) # list of grob heights
widths.all <- do.call(unit.c, wg)
heights.all <- do.call(unit.c, hg)
widths <- colMax.units(widths.all, ncol)
heights <- rowMax.units(heights.all, nrow)
gcells = frameGrob(name="table.cells", vp = "cells",
layout = grid.layout(nrow, ncol, just=just,
widths = widths,
heights = heights) )
label.ind <- 1 # index running for the vector of labels
for (ii in seq(1, n...
2005 Apr 14
2
Legend in xyplot two columns
Dear R-Help
I have some trouble to set the legend in a xyplot into two rows.
The code below gives me the legend in the layout I am looking for, I
just rather have it in two rows.
library(lattice)
schluessel <- list(
points=list( col="red", pch=19, cex=0.5 ),
text=list(lab="John"),
lines=list(col="blue"),
2007 May 26
1
lattice: aligning independent graphs
I find myself wanting to plot three graphs side by side 'as if' they
were panels -- that is, with the same y-axis limits, no space between
the graphs, and precise vertical alignment of the plot areas. However,
I don't want strip titles; I want each graph to have its own x-axis
label, on the bottom of the plot.
The best way I have so far found to do this is to fake up a data frame
that