...after digging for a while now, i came to a solution which may be crude,
but it works perfectly well.
if someone would advise me how to use textGrob avoiding the \n in the
title, combined with the linewidth = 4 in gpar(), to put the axis title into
the right place i'd be very glad!
maybe there
The development version of the lattice package has a 'ylab.right'
option, so you can do something like this to place your y labels:
xyplot(1:10 ~ 1:10 | c('a','b'), layout = c(1,2),
ylab = list(label one, y = 0.75),
ylab.right = list(label two, y = 0.25, rot = 270))
For the row-specific
felix,
thanks a lot for the hint!
i actually found another way by setting up a panel function by which i
can control every single panel with panel.number(). maybe there is
more efficient coding - i don't know. i also alternated tickmarks and
tick-labeling by panel-rows, which is nicer, but
On Wed, 2010-08-25 at 11:30 -0400, RICHARD M. HEIBERGER wrote:
Kay,
doe this do what you want?
dotplot(y1+y2 ~ facs$Treatment|facs$Sites,
outer=TRUE,
scales = list(x = list(rot = 90, tck=c(1,0))),
ylab=c(y1, y2),
xlab=c(Site 1, Site 2),
Hi
Coming a bit late to the thread another way to reduce the space between the
panels may be along the lines of Deepayan's reply with the layout.widths in
http://finzi.psych.upenn.edu/R/Rhelp02/archive/43626.html
I regularly use this and the latticeExtra addition will be welcome - I
have
hello,
i want to stack two lattice plots beneath each other using one x-axis and
sharing the same text-panels,
like:
#
library(lattice)
y1 - rnorm(100,100,10)
y2 - rnorm(100,10,1)
facs-expand.grid(Sites=rep(c(Site I,Site
Kay,
doe this do what you want?
dotplot(y1+y2 ~ facs$Treatment|facs$Sites,
outer=TRUE,
scales = list(x = list(rot = 90, tck=c(1,0))),
ylab=c(y1, y2),
xlab=c(Site 1, Site 2),
strip=FALSE)
On Wed, Aug 25, 2010 at 11:04 AM, Kay Cichini
exactly -
thanks a lot, richard!
kay
Zitat von RICHARD M. HEIBERGER r...@temple.edu:
Kay,
doe this do what you want?
dotplot(y1+y2 ~ facs$Treatment|facs$Sites,
outer=TRUE,
scales = list(x = list(rot = 90, tck=c(1,0))),
ylab=c(y1, y2),
xlab=c(Site 1, Site
... i added relation=free to account for diffferent ranges of y1 and y2:
dotplot(y1+y2 ~ facs$Treatment|facs$Sites,
outer=TRUE,
scales = list(y = list(relation=free), x = list(rot = 90,
tck=c(1,0))),
ylab=c(y1, y2),
xlab=c(Site 1, Site 2),
The multiple y axes are protecting you in this situation.
z - cbind(rnorm(100,c(1,10),1), rnorm(100,c(20,30),1))
dotplot(z[,1]+z[,2] ~ facs$Treatment|facs$Sites,
outer=TRUE,
scales = list(
y = list(
relation=free)),
ylab=c(y1, y2),
.. thanks again, richard.
and you swiftly saw the next problem comming up - when using par.settings =
list(layout.widths = list(axis.panel = c(1, 0))) getting rid of the double
tick labeling would be natural -
but i'll leave it at that for today.
many thanks,
kay
Richard M. Heiberger wrote:
Deepayan Sarkar has a function combineLimits() in the development
version of the latticeExtra package (i.e. the version on
r-forge.r-project.org) which will set common scales in each row or
column of your layout. It can also remove the internal axes.
# Felix
On 26 August 2010 04:43, Kay Cichini
12 matches
Mail list logo