similar to: Extracting specified pages from a lattice ("trellis") object.

Displaying 20 results from an estimated 10000 matches similar to: "Extracting specified pages from a lattice ("trellis") object."

2018 Apr 24
2
[FORGED] Extracting specified pages from a lattice ("trellis") object.
Hi I think the subsetting works by giving you the panels for the corresponding levels of the conditioning variable(s). Note that, if there is more than one conditioning variable, you will need more than one subsetting index. For example, taking this plot with two conditioning variables and 12 panels in total ... dotplot(variety ~ yield | year * site, data=barley) ... this produces three
2018 Apr 24
0
[FORGED] Extracting specified pages from a lattice ("trellis") object.
On 24/04/18 15:17, Paul Murrell wrote: > Hi > > I think the subsetting works by giving you the panels for the > corresponding levels of the conditioning variable(s).? Note that, if > there is more than one conditioning variable, you will need more than > one subsetting index. > > For example, taking this plot with two conditioning variables and 12 > panels in
2018 Apr 27
1
[FORGED] Extracting specified pages from a lattice ("trellis") object.
Hi Does this not do what you want ... ? allpages <- dotplot(variety ~ yield | year * site, data=barley, layout=c(2,2)) page2 <- allpages[1:2, 3:4] print(page2) Paul On 24/04/18 17:51, Rolf Turner wrote: > > On 24/04/18 15:17, Paul Murrell wrote: > >> Hi >> >> I think the subsetting works by giving you the panels for the >>
2007 Jan 30
1
change plotting symbol for groups in trellis graph
Hi, how can I change the plotting symbol for the groups in a trellis panel dotplot. My graph is similar to: library(trellis) dotplot(variety ~ yield | site, data = barley, groups = year, key = simpleKey(levels(barley$year), space = "right"), xlab = "Barley Yield (bushels/acre) ", aspect=0.5, layout = c(1,6), ylab=NULL) I'd like to
2004 Feb 12
2
lattice: showing panels for factor levels with no values
How to show panels for factor levels of conditioning variables which do have no values? E.g. there are panels for "Grand Rapids" when they have values: data( barley ) with( barley, dotplot(variety ~ yield | year * site, layout=c(6,2) ) ) There are no panels for "Grand Rapids" when there are no values for "Grand Rapids": my.barley <- subset( barley, ! ( site ==
2004 Sep 29
2
lattice .ps graphic is rotated in LaTeX slides
I've generated a version of the classic dotplot of the barley data with library(lattice) data(barley) trellis.device("postscript", color=TRUE, file="barley2x3.ps") old.settings <- trellis.par.get() trellis.par.set("background", list(col = "white")) lset(list(superpose.symbol=list(pch=c(19, 1, 25, 2, 15, 22, 23),
2005 Jun 01
1
font size in the trellis plot
>library(lattice) >dotplot(variety ~ yield | site, data = barley, groups = year, key = simpleKey(levels(barley$year), space = "right"), xlab = "Barley Yield (bushels/acre) ", aspect=0.5, layout = c(1,6), ylab=NULL) and i get the plot whose font overlaps .what parematers should i change.(i do not want to change the size of the plot).
2011 May 11
2
Dotplot (package Hmisc) with groups: colours and symbols
Hello all, This question concerns the function Dotplot from the Hmisc package. My aim is to compare values between groups in each panel of the Dotplot, with the values of different groups clearly distinguishable by different symbols. All lines and symbols should be coloured in black. Before adding the panel function to the Dotplot, the groups behaved as desired and were marked by different
2004 Dec 03
1
organising the display in Trellis plots
Hallo, I would like to organise at my pleasure the layout of a trellis plot. Currently I have a 3x3 matrix display and 7 plots. Is it possible to choose which specific panels will stay empty? I tried index.perm to arrange the order. Then there is perm.cond which I could not understand if it can serve for my purpose since I cant really find which kind of data it accepts. Thank you for the help.
2006 Jul 18
2
Sweave and multipage lattice
Dear R-Listeners, as the Sweave faq says: http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html creating several figures from one figure chunk does not work, and for standard graphics, a workaround is given. Now I have a multipage trellis plot with an a-priori unknown number of pages, and I don't see an elegant way of dividing it up into multiple pdf-files. I noted there is a "page"
2004 Jan 20
1
lattice: adding text between grouped panels?
How one can add a text (e.g. the labels of an axis) in a space between grouped panels which was created by using the argument ``between''? Example: data(barley) dotplot(variety ~ yield | site * year, data=barley, between=list(x=c( 0, 0, 6 )) How to add labels for the y axis in the space in the middle? Thanks Wolfram
2011 Jul 27
1
color of error bars in Dotplot (Hmisc)
Hello! In a grouped Dotplot, is there any way to set the color of error bars to be the same as the corresponding symbols? Example data: require(lattice) require(Hmisc) data(barley) Dotplot(variety~Cbind(yield, yield+2, yield-2)|year, groups=site, data=barley) I experimented with changing trellis settings of plot.line (as mentioned in the Hmisc documentation) as well as col.line settings in
2005 Mar 22
3
Lattice : factor levels in the margins
Hello ! I'm struggling again against lattice graprhics. ;) I'm trying to produce a conditionnal xyplot with two conditionning factors (let's say A and B). I want the levels of those factors (A1, A2, etc) to show in the margins of the lattice plot, not in the strips between the panels. A1 A2 A3 plot11 plot12 plot13 B1 plot21 plot22 plot23 B2 I managed to remove the
2012 Jun 06
5
how to add a vertical line for each panel in a lattice dotplot with log scale?
by considering this example from barley dataset #code start dotplot(variety ~ yield | site, data = barley, scales=list(x=list(log=TRUE)), layout = c(1,6), panel = function(...) { panel.dotplot(...) #median.values <- tapply(x, y, median) # medians for each variety #panel.abline(v=median.values, col.line="red") # but this
2009 Dec 02
2
Help: barchart() {Lattice}
Hi R Users, I'm using following data/code (data is attached also) to produce a stacked barplot. # Sample Data: Names Col1 Col2 Col3 Row1 -20 40 -10 Row2 30 -20 40 Row3 30 10 -20 Row4 20 20 -10 # R Code: dta<-read.table("data.txt", header=TRUE, row.names="Names") barchart(data.matrix(dta), horizontal=FALSE, stack=TRUE, par.settings = simpleTheme(col =
2006 Jul 07
2
dotplot (lattice) with panel.segments and groups
Hi, The following produces almost exactly what I needed. The problems are that the 'panel.dotplot' call (commented) generates the error 'Error in NextMethod("[") : argument "subscripts" is missing, with no default'. The other problem is that the colors alternate between the levels of the 'site' variable, rather than 'year'. barley$yield2
2011 Aug 17
2
dotchart vs. dotplot ... groups
I'm trying to create a dotplot with some grouping. I've been able to create what I want using dotchart (basic graphics), but can't quite get it using dotplot (lattice). I prefer to use lattice (or ggplot2) because I think it's a bit easier to control some other aspects of the plot appearance. Basically, w/ lattice I've not been able to get the y-axis label to include the
2008 Dec 31
2
Lattice trellis.focus() with pdf
Hi, I have a the code for a plot that works perfectly running in R and printing to a Quartz object but which doesn't work when I make the trellis device a pdf. The code is as follows: ---- trellis.device(device="pdf", new=TRUE) trellis.par.set(my.theme()) dotplot(Y ~ X | C, groups=G, data=D, layout=c(2,1), ... ) trellis.focus("panel", 1, 1) for (y in 1:5) {
2006 Dec 08
1
lattice: defining an own function using args for "formula" and "groups"
x.fun <- function( formula, data ) dotplot( formula, data ) x.grp <- function( formula, groups, data ) dotplot( formula, groups, data ) data( barley ) > x.fun( variety ~ yield | site, data=barley ) # no problem > dotplot( variety ~ yield | site, groups=year, data=barley ) # no problem > x.grp( variety ~ yield | site, groups=year, data=barley ) object "year" not found
2005 May 03
3
Lattice dotplot with symbols sized and colored
Apologies if this is a naive beginners question. I am trying to create a dotplot with the lattice dotplot function in which my dots are colored differently depending on if positive or negative and sized by sp.nc.bdrs.data$mwZ I have tried... dotplot(sporder ~ cvarorder | direct, data=sp.nc.bdrs.data, cex=abs(sp.nc.bdrs.data$mwZ * 0.05), xlab="climate variables",