Dear all,
Though labeling the x and y axis in the plot command seems to be straight
forward, I can not get it to work if I do the following:
## Creating example data
edata <- c(1,2,1,2)
edata <- matrix(edata, 2, 2, byrow = T)
colnames(edata) <- c("a", "b")
edata <- data.frame(edata)
## p
), more = F)
## There is a lot of white space between both graphs in the y direction.
## Since the plots share the same x axis I was wondering if there is a way
to
## concatenate the plots to eliminate the white space in the y direction?
Deepayan Sarkar wrote:
>
> On 1/30/08, eite2335
OK - here is an example:
## Create example data
data = matrix(1:8, nrow=4, ncol=2)
## Name columns "x" and "y"
colnames(data) = c("x", "y")
data = data.frame(data)
## Create 5 graphs with the xyplot command
graph1= xyplot(y~x, data = data)
graph2 = xyplot(y~x, data = data)
graph3 = xyplot(
3 matches
Mail list logo