Using dput() is a good idea, but is the included dataset
really a _minimal_ set to illustrate your problem?
Peter Ehlers
On 2012-07-20 18:00, "José M. Blanco Moreno" wrote:
Dear R-users,
I have tried, and I imagine it should be somewhere in the lines of passing
extra arguments to the panel function, but does anyone know how to change the
character expansion factor that is affecting an individual point in each of the
panels of a lattice plot?
I have tried to pass an overall cex argument containing the desired size for
each point, but then the sizes are reused for the different groups beginning
with the first size, not with the first size belonging to a given group.
I tried:
xyplot(y~x|group,cex=z,data=dd)
But that gives me the undesired behaviour.
I hope I am not missing something really obvious.
Thank you,
José M.
Data:
structure(list(y = c(3L, 3L, 3L, 3L, 9L, 9L, 9L, 9L, 38L, 38L, 38L, 38L, 44L,
44L, 44L, 44L, 38L, 38L, 38L, 38L, 44L, 44L, 44L, 44L, 38L, 38L, 38L, 38L, 44L,
44L, 44L, 44L, 54L, 54L, 54L, 54L, 60L, 60L, 60L, 60L, 54L, 54L, 54L, 54L, 60L,
60L, 60L, 60L, 54L, 54L, 54L, 54L, 60L, 60L, 60L, 60L, 54L, 54L, 54L, 54L, 60L,
60L, 60L, 60L, 73L, 73L, 73L, 73L, 79L, 79L, 79L, 79L, 73L, 73L, 73L, 73L, 79L,
79L, 79L, 79L, 73L, 73L, 73L, 73L, 79L, 79L, 79L, 79L, 3L, 3L, 3L, 3L, 9L, 9L,
9L, 9L, 73L, 73L, 73L, 73L, 79L, 79L, 79L, 79L, 89L, 89L, 89L, 89L, 95L, 95L,
95L, 95L, 89L, 89L, 89L, 89L, 95L, 95L, 95L, 95L, 89L, 89L, 89L, 89L, 95L, 95L,
95L, 95L, 89L, 89L, 89L, 89L, 95L, 95L, 95L, 95L, 108L, 108L, 108L, 108L, 114L,
114L, 114L, 114L, 108L, 108L, 108L, 108L, 114L, 114L, 114L, 114L, 108L, 108L,
108L, 108L, 114L, 114L, 114L, 114L, 108L, 108L, 108L, 108L, 114L, 114L, 114L,
114L, 124L, 124L, 124L, 124L, 130L, 130L, 130L, 130L, 3L, 3L, 3L, 3L, 9L, 9L,
9L, 9L, 124L, 124L, 124L, 124L, 130L, 1
30L, 13
0L, 130L, 124L, 124L, 124L, 124L, 130L, 130L, 130L, 130L, 124L, 124L, 124L,
124L, 130L, 130L, 130L, 130L, 3L, 3L, 3L, 3L, 9L, 9L, 9L, 9L, 19L, 19L, 19L,
19L, 25L, 25L, 25L, 25L, 19L, 19L, 19L, 19L, 25L, 25L, 25L, 25L, 19L, 19L, 19L,
19L, 25L, 25L, 25L, 25L, 19L, 19L, 19L, 19L, 25L, 25L, 25L, 25L, 38L, 38L, 38L,
38L, 44L, 44L, 44L, 44L), x = c(3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75, 9.75,
16.25, 16.25, 22.75, 22.75, 16.25, 16.25, 22.75, 22.75, 29.25, 29.25, 35.75,
35.75, 29.25, 29.25, 35.75, 35.75, 42.25, 42.25, 48.75, 48.75, 42.25, 42.25,
48.75, 48.75, 3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75, 9.75, 16.25, 16.25,
22.75, 22.75, 16.25, 16.25, 22.75, 22.75, 29.25, 29.25, 35.75, 35.75, 29.25,
29.25, 35.75, 35.75, 42.25, 42.25, 48.75, 48.75, 42.25, 42.25, 48.75, 48.75,
3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75, 9.75, 16.25, 16.25, 22.75, 22.75,
16.25, 16.25, 22.75, 22.75, 29.25, 29.25, 35.75, 35.75, 29.25, 29.25, 35.75,
35.75, 16.25, 16.25, 22.75, 22.75, 16.25, 16.25, 22.75, 22.7
5, 42.25
, 42.25, 48.75, 48.75, 42.25, 42.25, 48.75, 48.75, 3.25, 3.25, 9.75, 9.75,
3.25, 3.25, 9.75, 9.75, 16.25, 16.25, 22.75, 22.75, 16.25, 16.25, 22.75, 22.75,
29.25, 29.25, 35.75, 35.75, 29.25, 29.25, 35.75, 35.75, 42.25, 42.25, 48.75,
48.75, 42.25, 42.25, 48.75, 48.75, 3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75,
9.75, 16.25, 16.25, 22.75, 22.75, 16.25, 16.25, 22.75, 22.75, 29.25, 29.25,
35.75, 35.75, 29.25, 29.25, 35.75, 35.75, 42.25, 42.25, 48.75, 48.75, 42.25,
42.25, 48.75, 48.75, 3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75, 9.75, 29.25,
29.25, 35.75, 35.75, 29.25, 29.25, 35.75, 35.75, 16.25, 16.25, 22.75, 22.75,
16.25, 16.25, 22.75, 22.75, 29.25, 29.25, 35.75, 35.75, 29.25, 29.25, 35.75,
35.75, 42.25, 42.25, 48.75, 48.75, 42.25, 42.25, 48.75, 48.75, 42.25, 42.25,
48.75, 48.75, 42.25, 42.25, 48.75, 48.75, 3.25, 3.25, 9.75, 9.75, 3.25, 3.25,
9.75, 9.75, 16.25, 16.25, 22.75, 22.75, 16.25, 16.25, 22.75, 22.75, 29.25,
29.25, 35.75, 35.75, 29.25, 29.25, 35.75, 35.75, 42.25, 42.25, 48.75
, 48.75,
42.25, 42.25, 48.75, 48.75, 3.25, 3.25, 9.75, 9.75, 3.25, 3.25, 9.75, 9.75), group = structure(c(2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 1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0, 2, 3, 6, 1, 7, 0, 1, 2, 3, 3, 1, 0, 2, 1, 1, 0, 0, 0, 6, 2, 0, 2, 12, 4, 6, 5, 8, 4, 8, 4, 12, 3, 0, 0, 4, 0, 4, 0, 5, 2, 4, 1, 8, 3, 3, 1, 1, 2, 1, 1, 8, 0, 0, 0, 13, 1, 18, 1, 5, 0, 14, 2, 2, 1, 2, 0, 4, 1, 1, 1, 4, 3, 3, 2, 3, 4, 8, 2, 2, 2, 8, 4, 4, 2, 6, 4, 7, 4, 3, 1, 10, 5, 4, 40, 4, 2, 14, 3, 5, 1, 7, 4, 4, 2, 6, 4, 2, 3, 9, 1, 13, 6, 22, 8)), .Names = c("
y", "x",
"group", "z"), class = "data.frame", row.names = c(35L, 83L, 131L, 179L, 227L,
275L, 323L, 371L, 419L, 467L, 515L, 563L, 611L, 659L, 707L, 755L, 803L, 851L, 899L, 947L, 995L, 1043L, 1091L,
1139L, 1187L, 1235L, 1283L, 1331L, 1379L, 1427L, 1475L, 1523L, 1571L, 1619L, 1667L, 1715L, 1763L, 1811L,
1859L, 1907L, 1955L, 2003L, 2051L, 2099L, 2147L, 2195L, 2243L, 2291L, 2339L, 2387L, 2435L, 2483L, 2531L,
2579L, 2627L, 2675L, 2723L, 2771L, 2819L, 2867L, 2915L, 2963L, 3011L, 3059L, 3107L, 3155L, 3203L, 3251L,
3299L, 3347L, 3395L, 3443L, 3491L, 3539L, 3587L, 3635L, 3683L, 3731L, 3779L, 3827L, 3875L, 3923L, 3971L,
4019L, 4067L, 4115L, 4163L, 4211L, 4259L, 4307L, 4355L, 4403L, 4451L, 4499L, 4547L, 4595L, 4643L, 4691L,
4739L, 4787L, 4835L, 4883L, 4931L, 4979L, 5027L, 5075L, 5123L, 5171L, 5219L, 5267L, 5315L, 5363L, 5411L,
5459L, 5507L, 5555L, 5603L, 5651L, 5699L, 5747L, 5795L, 5843L, 5891L, 5939L, 5987L, 6035L, 6083L, 6131L,
6179L, 6227L, 6275L, 6323L, 6371L, 6419L, 6467L, 6515L, 6563L, 66
11L, 665
9L, 6707L, 6755L, 6803L, 6851L, 6899L, 6947L, 6995L, 7043L, 7091L, 7139L,
7187L, 7235L, 7283L, 7331L, 7379L, 7427L, 7475L, 7523L, 7571L, 7619L, 7667L,
7715L, 7763L, 7811L, 7859L, 7907L, 7955L, 8003L, 8051L, 8099L, 8147L, 8195L,
8243L, 8291L, 8339L, 8387L, 8435L, 8483L, 8531L, 8579L, 8627L, 8675L, 8723L,
8771L, 8819L, 8867L, 8915L, 8963L, 9011L, 9059L, 9107L, 9155L, 9203L, 9251L,
9299L, 9347L, 9395L, 9443L, 9491L, 9539L, 9587L, 9635L, 9683L, 9731L, 9779L,
9827L, 9875L, 9923L, 9971L, 10019L, 10067L, 10115L, 10163L, 10211L, 10259L,
10307L, 10355L, 10403L, 10451L, 10499L, 10547L, 10595L, 10643L, 10691L, 10739L,
10787L, 10835L, 10883L, 10931L, 10979L, 11027L, 11075L, 11123L, 11171L, 11219L,
11267L, 11315L, 11363L, 11411L, 11459L, 11507L, 11555L, 11603L, 11651L, 11699L,
11747L, 11795L, 11843L, 11891L, 11939L, 11987L, 12035L, 12083L, 12131L, 12179L,
12227L, 12275L))
--
---------------------------------------
José M. Blanco-Moreno
Dept. de Biologia Vegetal (Botà nica)
Facultat de Biologia
Universitat de Barcelona
Av. Diagonal 643
08028 Barcelona
SPAIN
---------------------------------------
phone: (+34) 934 039 863
fax: (+34) 934 112 842
---------------------------------------
The best argument against democracy is
a five-minute conversation with the
average voter. -Winston Churchill, statesman,
military and author (1874-1965)
Aquest correu electrònic i els annexos poden contenir informació confidencial
o protegida legalment i està adreçat exclusivament a la persona o entitat
destinatà ria. Si no sou el destinatari final o la persona encarregada de
rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo,
distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest
correu electrònic per error, us preguem que n’informeu al remitent i que
elimineu del sistema el missatge i el material annex que pugui contenir. GrÃ
cies per la vostra col·laboració.
Este correo electrónico y sus anexos pueden contener información confidencial
o legalmente protegida y está exclusivamente dirigido a la persona o entidad
destinataria. Si usted no es el destinatario final o la persona encargada de
recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo,
copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico
por error, le rogamos que informe al remitente y elimine del sistema el mensaje
y el material anexo que pueda contener. Gracias por su colaboración.
This email message and any documents attached to it may contain confidential or
legally protected material and are intended solely for the use of the
individual or organization to whom they are addressed. We remind you that if
you are not the intended recipient of this email message or the person
responsible for processing it, then you are not authorized to read, save,
modify, send, copy or disclose any of its contents. If you have received this
email message by mistake, we kindly ask you to inform the sender of this and to
eliminate both the message and any attachments it carries from your account.
Thank you for your collaboration.
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.