Hello, friends of mosaicplot, I want to attach a fixed legend to mosaicplot, e.g. -3..3 independently of the data in the graphics. This must be hidden somehow in shading/legend, but I could not get the right handle to it. Dieter
Dieter Menne wrote:> Hello, friends of mosaicplot, > > I want to attach a fixed legend to mosaicplot, e.g. -3..3 independently of > the data in the graphics. This must be hidden somehow in shading/legend, but > I could not get the right handle to it. > > Dieter > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlExample: plot(1:10) legend(par("usr")[2], par("usr")[4], legend="Example", pch=1, xjust=1) Uwe Ligges
Dieter, there is no way of fixing the range of the residuals yet, we will add sth. like a ylim argument to legend_foo(). Thanks for pointing this out, David PS: there is no mosaicplot() function in vcd, but a mosaic() ... -- Dr. David Meyer Department of Information Systems and Operations Vienna University of Economics and Business Administration Augasse 2-6, A-1090 Wien, Austria, Europe Fax: +43-1-313 36x746 Tel: +43-1-313 36x4393 HP: http://wi.wu-wien.ac.at/~meyer/