search for: segplot

Displaying 10 results from an estimated 10 matches for "segplot".

2010 May 25
2
segplot (latticeExtra)
Hi, I'm having a bit of trouble with 'scales="free"' in the segplot() function of latticeExtra. Say we need panels for each year, showing only those counties that are represented in each one: ---<--------------------cut here---------------start------------------->--- library(latticeExtra) data(USCancerRates) uscr.w <- subset(USCancerRates, state == &quot...
2012 Sep 10
2
how to create a segplot in black and white?
...Target","Target","Target","Non-Target","Target","Target","Non-Target","Non-Target","Non-Target","Non-Target") dfInOutBiom2 <- data.frame (ratioBiomass ,SEratio ,Species ,Commercial.Value) #I tried a segplot which I think is the most adequate function to what I need but I can't do it in black and white: plotBiomRatio2 <- segplot(reorder(factor(Species), ratioBiomass ) ~ (- SEratio ) + SEratio , data = dfInOutBiom2,col="black",level = Commercial.Value, colorkey= TRUE, draw.b...
2012 Nov 03
2
reorder() in the latticeExtra library
....001071724) SE <- c(0.000444123, 0.000290096, 0.000372844, 0.00197687, 0.033945128, 0.035231568, 0.001094518, 0.000423545) lower <- plant.height - SE; upper <- plant.height + SE x <- data.frame(group = genotype, lower = lower, est = plant.height, upper = upper) library(latticeExtra) segplot(reorder(genotype, est) ~ lower + upper, data = x, draw.bands = FALSE, centers = est, segments.fun = panel.arrows, ends = "both", angle = 90, length = 0, par.settings = simpleTheme(pch = 19, col = 1), xlab = expression("nucleotide diversity " %+-% " sd"), panel = functi...
2010 Jun 13
1
using latticeExtra plotting confidence intervals
I am wanting to plot a 95% confidence band using segplot, yet I am wanting to have groups. For example if I have males and females, and then I have them in different races, I want the racial groups in different panels. I have this minor code, completely made up but gets at what I am wanting, 4 random samples and 4 samples of confidence, I know how to get...
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 Aug 11
3
Lattice: How to do error bars
I am trying to add 2 stdev error bars to lattice type plots: panel.ebar<-function(x,y,dy=NULL,...) { panel.xyplot(x,y,...) panel.segments(x,y-dy,x,y+dy,...) } Then: xyplot(y~x|fc,data=dat,dy=dat$dy,panel=panel.ebar) This adds error bars but they are not conditioned on the factor fc. xyplot(y+I(y-dy)+I(y+dy)~x|fc,data=dat) This produces 3 series of points in different colors, conditioned
2010 Aug 08
3
Does anybody know how to control the appearance of the end of the line in lattice?
Hi All, I am plotting vertical lines using xyplot in lattice and type="h". It works well, but the problem is that the tops of the lines are convex and the bottoms are concave. Is there a way to flatten the tops and bottoms? Here's my code: Source<-matrix(1:30,10,3) colnames(Source)<-c("x","y1","y2") Source<-data.frame(Source) xyplot(y2+y1~x,
2011 Jun 07
3
Cleveland dot plots
I would rather use cleveland dot plots than bar charts to display my study results. I have not been able to find (or figure out) an R package that is capable of producing the publication quality dot charts Im looking for. I have either not been able to get error bars (lattice), cannot order the data display properly (latticeExtra), or cannot make adjustments to axes. Does anyone have a quick
2009 Nov 17
2
Lattice plot
Hi, I was trying to get a graph in lattice with the following data frame (7 rows, 5 cols): chr start1 end1 meth positive 1 1 10 20 1.5 y 2 2 12 18 -0.7 n 3 3 22 34 2.0 y 4 1 35 70 3.0 y 5 1 120 140 -1.3 n 6 1 180 190 0.2 y 7 2 220 300 0.4 y I wanted the panels to be organized by 'chr' -
2013 Jun 24
3
Dibujar rectas sobre varios un grafico multipanel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Estimada comunidad, tengo que hacer un grafico con 4 paneles (4 graficos pegados juntos) y sobre este tengo que dibujar 4 rectas ajustadas a los datos de cada panel. Intente hacerlo con lattice usando el siguiente codigo : library(lattice) library(latticeExtra) xYplot(Cbind(mf[,3],mf[,5],mf[,6])~dia|factor(sol),data=mf,xlab="Time