similar to: dotplot line types and strip question

Displaying 20 results from an estimated 1000 matches similar to: "dotplot line types and strip question"

2012 Mar 07
1
confidence intervals in dotplots in a for loop
# I have some population estimates and confidence intervals for various size classes # of animals captured with two gear types. I'd like to plot the estimates along with # the 90 and 95% CI's by size class for each gear type. # The data can be read in as: estimates <- c(67.42,30.49,32.95,23.53,10.26,6.03,23.53,0.93,50.72,24.2,25.84,18.54,
2013 Feb 28
1
put strip below the panel (dotplot)
Hello I am using lattice dotplot and I would like to put the strip under the panel. I found the code “strip” is for the strip above the panel, and “strip.left” for the strip left to the panel. Please kindly advise how to write the code for the strip under the panel Thank you Elaine [[alternative HTML version deleted]]
2010 Aug 24
1
drop unused levels in lattice dotplot axis?
Hi list, I have a data set - something like this dfr <- data.frame(A=factor(letters[1:25]),B=runif(25), C=sample(LETTERS[1:4],25,replace=TRUE)) and I want to create a dotplot: library(lattice)dotplot(A ~ B | C, data=dfr, scales=list(y=list(relation="free"))) but this puts uneven spaces along the y-axis in each panel. drop.unused.levels=TRUE will drop conditioning
2004 Aug 16
1
Dotplot with nested factors
I am using the dotplot function from the lattice package to display a quantitative variable versus two factors, say 'a' and 'b'. The levels of 'a' are nested within levels of 'b'. The issue is that dotplot includes all the levels of 'a' in each panel (conditioning on 'b'), even though many are empty in any given panel. A toy example is dat
2011 Oct 26
2
dotPlot with diagonal
Hi, I want draw a dotPlot. All works fine: (Seq <- matrix(c(1, 1, 6, 1, 2, 2, 5, 4, 3, 3, 4, 3, 4, 4, 3, 2, 5, 5, 2, 5, 6, 6, 1, 6), ncol = 6)) dotPlot(Seq[1,], Seq[2,], main = "Sequenz 1 und Sequenz 2", asp = 1) Is there a way to draw a small diagonal, begin at (0/0) to (6/6) (perhaps in red??) or must I use gimp? I have many dotPlots, so it is fine if R can do this. Thanks Joerg
2008 May 12
1
Mathematical annotation in lattice strip: Is it possible?
I have tried without success to find a way including the square root symbol in lattice strips as part of my conditioning labels. I have tried supplementing by creating a list of vectors using the var.name function coupled with the expression function used in xlab/ylab. xyplot(adjusted_Rand_index~cluster|distance_measure, main="Level of agreement between partitions: Wards Method",
2012 Sep 20
3
lattice dotplot reorder contiguous levels
my reproducible example test<-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label = c("A", "B", "C", "D", "E"), class = "factor"),
2004 Feb 10
2
Dotplot: y-labels from rownames
How can I use row.names() as y-labels in Dotplot? How to set horizontal orientation for y-lables in lattice()? Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og], subset=statgh2[og]>0.1, data=h2inqerrg02st, xlab="G", ylab=row.names(h2inqerrg02st)[og], main="") I have tried doing it with mtext() as well, but there is not enough space besides
2004 Oct 22
3
dotplot & lattice problems: y axis values and bg color output in jpg
I have a linux system with Fedora Core 2 and R-2.0. I was comparing plots made with plot() and dotplot() and discovered a problem. Although the dots are positioned correctly, the numerical labels in the dotplot y axis are not correct. I put copies here: http://lark.cc.ku.edu/~pauljohn/R/plotTrouble1.jpg That is the "correct" one from plot, with the higest value on y showing at 18.
2012 Nov 15
1
strip.custom() with more than one conditioning variable
Suppose I wanted to plot the barley data like this: dotplot(variety ~ yield | year+ site, barley, strip = strip.custom(style = 4)) The factor levels are far too long for that to be useful. I can overcome that problem if I shorten the levels like this: dotplot(variety ~ yield | year + site, barley, strip = strip.custom(style = 4, factor.levels =
2011 Jul 04
1
Contrastes con el paquete survey (svycontrast)
Estimados usuarios: Estoy intentando reproducir el ejemplo 6.4 de Thomas Lumley. Complex Survey. Editorial Wiley. 2010 (ver la página en google:
2003 Jan 15
2
[lattice] lines for stripplot (like dotplot) or jitter for dotplot?
I'd like to use stripplot for some plots because I want to use the jitter parameter. On the other hand, I'd like to use dotplot because I'd like to have the horizontal lines that it includes. dotplot doesn't have a jitter option and I'm not having any success with getting panel.grid(h=-1) with stripplot. Can anyone show me how to make dotplot-like lines on a stripplot? Or
2006 Sep 16
2
dotplot/Dotplot: connecting points within factor level across time
For each level of the factor in dotplot, I have time points I'd like to connect with a line. In the example below, 'x' represents a starting time and 'd' a duration, and I wish to connect 'x' to 'x+d'. Ordinarily I would use Dotplot from hmisc for this, but I have not been able to find a time class that Dotplot will allow. I can get lattice dotplot to put
2009 Feb 19
2
dotplot points color
Dear list, is it possible to change the background color of dotplot's points? I tried in many ways but unsuccessfully Thanks in advance Gianandrea require(lattice) dotplot(variety ~ yield | site, data = barley, groups = year, pch=21) dotplot(variety ~ yield | site, data = barley, groups = year, pch=21, bg=c("2","3")) ??!!! -- View this message in context:
2007 May 16
2
Abline in dotplot
Hello, I have trouble adding an abline to a dotplot() from "lattice" package. For example, I would like to draw a line at x=3: > library(lattice) > x<-1:5 > names(x) <- c("a", "b", "c", "d", "e") > dotplot(sample(x)) > panel.abline(v=3) Produces a line on the left hand side of the origin. What would be a correct
2001 Jan 18
0
dotplot: character size of labels (PR#816)
There seems to be a bug in "dotplot" concerning the "cex" parameter. Setting cex has no effect on the character size of the labels of the points. This problem was posted to r-help today (Thu, 18 Jan 2001); the solution given by Brian Ripley (and Uwe Ligges) seems to work for me. Heinrich Rinner. > version _ platform i386-pc-mingw32 arch x86
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
2009 Apr 18
1
dotplot in a loop
Hi all, I'm a newbie R developer, am trying to dotplot a few graphs using a for loop. The following code works fine but once I wanna plot inside a loop, nothing happens. > for(i in 1:1){dotplot(y~x)} > y <- c(1,2,3) > x <- c('a','b','c') > dotplot(y~x) > for (i in 1:3) {dotplot(y~x)} (y and x depends on I in actual case) Nothing happens. I
2006 Sep 15
2
dotplot, dropping unused levels of 'y'
In dotplot, what's the best way to suppress the unused levels of 'y' on a per-panel basis? This is useful for the case that 'y' is a factor taking perhaps thousands of levels, but for a given panel, only a handfull of these levels ever present. Thanks, Ben
2007 Jul 26
1
How to auto-scale cex of y-axis labels in lattice dotplot?
When I create a dotplot in lattice, I frequently observe overplotting of the labels along the vertical axis. On my screen, this illustrates overplotting of the letters: windows() reps=6 dat=data.frame(let=rep(letters,each=reps), grp=rep(1:reps, 26), y=runif(26*reps)) dotplot(let~y|grp, dat) Is there a way to automatically scale the labels so that they are not over-plotted? I currently do