search for: twogrp

Displaying 3 results from an estimated 3 matches for "twogrp".

2008 May 21
1
problems with data frames, factors and lists
...function(Y, pid) { hc = gethc(Y,pid) maxheight = max(hc$height) noingrp = processhc(hc) one = noingrp$one two = noingrp$two twoisone = "one" if (two != 1) twoisone = "more" out = list(pid = pid,one = noingrp$one, two = noingrp$two, diff = maxheight, noseqs = length(hc$labels), twogrp = twoisone) return(out) } example result: > mix(tsus_same, 77) $pid [1] 77 $one [1] 9 $two [1] 2 $diff [1] 8.577195 $noseqs [1] 11 $twogrp [1] "more" > I then use this function in another function that just runs this function through a lot of data: doset <- function(sa...
2011 Apr 04
2
gap.barplot doesn't support data arrays?
I am trying to make a barplot with a broken axis using gap.barplot (in the indispensable plotrix package). This works well when the data is a vector: > twogrp<-c(rnorm(10)+4,rnorm(10)+20) > gap.barplot(twogrp,gap=c(8,16),xlab="Index",ytics=c(3,6,17,20),ylab="Group values",main="Barplot with gap") But when the data is an array (for a bar plot with multiple series) I get an error and a strange plot with no y-tics and ba...
2006 Jul 19
2
Plotting lines and points on the second plot when using gap.plot in plotrix
Hi My question is simple - the gap.plot function in the plotrix package allows users to draw graphs that have a broken axis. However, I want to then add a line to the "second" plot, but can't. Eg: twogrp<-c(rnorm(10)+4,rnorm(10)+20) gap.plot(twogrp,rnorm(20),gap.bounds=c(8,16),gap.axis="x",xlab="X values", xtics=c(4,7,17,20),ylab="Y values",main="Plot gap on X axis") # this doesn't work points(17,0,col="red") # this does work points...