Skip to content

mosaicplot enhancements (PR#2023)

1 message · Uwe Ligges

#
This is a feature request for mosaicplot, including the 
suggestion for the code changes (mosaicplot.R) and docs
(mosaicplot.Rd) by Wolfram Fischer and myself, 
diff'ed to 1.6.0 beta (2002-09-14):

Uwe Ligges


.../src/library/base/R/mosaicplot.R:

====================================================

11a12,13
14,15c16,19
< function(x, main = NULL, xlab = NULL, ylab = NULL, sort = NULL, off =
<          NULL, dir = NULL, color = FALSE, shade = FALSE, margin = NULL,
---
18,19c22,24
<     mosaic.cell <- function(X, x1, y1, x2, y2, off, dir, color, lablevx, lablevy,
<                             maxdim, currlev, label)
---
50c55
<                      srt=0, adj=.5, cex=.66, this.lab)
---
110c115
<                      srt=90, adj=.5, cex=.66, this.lab)
---
148a154,158
301c311
<              srt = 90, cex = 0.66)
---
304,313c314,341
<     if (!is.null(main) || !is.null(xlab) || !is.null(ylab))
<         title(main, xlab=xlab, ylab=ylab)
< 
<     mosaic.cell(Ind,
<                 x1=50, y1=5, x2=950, y2=950,
<                 off/100, dir,
<                 color, 2, 2,
<                 maxdim= apply(as.matrix(Ind[,1:dimd]), 2, max),
<                 currlev= 1, label)
< 
---
====================================================



.../src/library/base/man/mosaicplot.Rd:

====================================================

8c8,9
< \method{mosaicplot}{default}(x, main = NULL, xlab = NULL, ylab = NULL,
---
10a12
18a21
44a48,50
====================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._