[R-sig-eco] labels to a varpart diagram

2011-04-08 Thread Emili Garcia-Berthou
Dear list members: Does anybody know how to add labels to the sets/circles of a varpart diagram? E.g., how to add labels to the three circles obtained with: data(mite) data(mite.env) data(mite.pcnm) mod - varpart(mite, ~ SubsDens + WatrCont, ~ Substrate + Shrub + Topo, mite.pcnm,

Re: [R-sig-eco] labels to a varpart diagram

2011-04-08 Thread Ingolf Kuehn
Dear Emili, text works: the origin of the plot is in the centre upper left circle (X1 | X2+X3). Hence text(0, 0, X1) would overwrite the 0.04. Similarly: see text(1, 0, X2), text(0.5, -.86, X3) This might help you finding the correct coordinates. Cheers Ingolf Am 08.04.2011 11:22, schrieb

Re: [R-sig-eco] labels to a varpart diagram

2011-04-08 Thread Jari Oksanen
On 8/04/11 12:46 PM, Ingolf Kuehn ingolf.ku...@ufz.de wrote: Dear Emili, text works: the origin of the plot is in the centre upper left circle (X1 | X2+X3). Hence text(0, 0, X1) would overwrite the 0.04. Similarly: see text(1, 0, X2), text(0.5, -.86, X3) This might help you finding the

Re: [R-sig-eco] labels to a varpart diagram

2011-04-08 Thread Emili Garcia-Berthou
Thank you very much! Both answers are great! I'll give the complete example (drawn from the varpart help) for future list readers. data(mite) data(mite.env) data(mite.pcnm) mod - varpart(mite, ~ SubsDens + WatrCont, ~ Substrate + Shrub + Topo, mite.pcnm, data=mite.env, transfo=hel) plot(mod)