Displaying 1 result from an estimated 1 matches for "tdbu".
Did you mean:
tdb
2007 Nov 08
1
ggplot2 facets as rows and columns
...been able to get such data plotted as a single row or
single column of skinny subplots. The code below gives
an example implemented with lattice, and my best
attempt in ggplot2
cheers
Ben Bolker
------------
g= rep(1:9,each=50)
means = rnorm(9)
vars = runif(9)
x = rnorm(450,means[g],vars[g])
TDBU = data.frame(system=factor(g),x)
require(lattice)
histogram( ~ x | system, data = TDBU,
xlab = "LRR Effect Size",type="density",
panel = function(x, ...) {
panel.histogram(x, ...)
panel.densityplot(x,...)
} )
library(ggpl...