search for: mosaicplot

Displaying 20 results from an estimated 93 matches for "mosaicplot".

2002 Jan 30
1
mosaicplot(formula, data)--- bugged?
I have been tinkering with mosaicplot() and friends as a way of learning R. As part of this, I've written a pair.table() method for mosaic matrices, and would like to extend mosaicplot to work with loglin and logln (MASS) objects. I'm using R 1.4.0 on Win 98. I've been trying to figure out the formula interface, and thin...
2004 Sep 27
2
Getting code for functions
...avail. I am using R1.9.1 on a windows machine One of the great advantages of R (to me, anyway) is being able to see the code for a function , e.g. by typing sd one sees the code for getting a standard deviation. However, for many functions this only provides info. including UseMethod, eg. typing mosaicplot yields function (x, ...) UseMethod("mosaicplot") <environment: namespace:graphics> How can I see the code for such functions? Thanks in advance as always Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research Nati...
2003 Jun 13
2
formula (joint, conditional independence, etc.) - mosaicplots
Hi, Can someone set me straight as to how to write formulas in R to indicate: complete independence [A][B][C] joint independence [AB][C] conditional independence [AC][BC] nway interaction [AB][AC][BC] ? For example, if I have 4 factors: hair colour, eye colour, age, sex does > mosaicplot( frequency ~ hair + eye + age + sex) mean that the model fitted is of complete independence of all factors [hair][eye][age][sex]? So does > mosaicplot(frequency ~ hair + eye) mean that the model is of conditional independence [hairAgeSex][eyeAgeSex]? How does the operator * as in > m...
2005 Mar 29
1
Mosaicplot with different colors
...1st 12 40-50 no high female yes 1st 13 50-60 no medium female yes 1st 14 20-30 no medium female yes 1st 15 20-30 no low female yes 1st 16 20-30 no high male yes 1st > testbank.tab <- table(testbank) > library(vcd) > mosaicplot(testbank.tab) > mosaicplot(testbank.tab, shade=T) I know mosaicplot (package vcd) can handle for this dataset. I want to plot that dataset which different colors for age, income and gender. How can I do that? Or are there any others package? Thanks in advance for any assistance. Jan Sabee
2005 Mar 10
2
Question regarding mosaicplot
I tried this : > mosaicplot(stoc ~ q9r + segca,data=tmp2,color=T) : works fine. And now, this : > mosaicplot(stoc ~ q9r + segca, data=tmp2, color=T, main="Big title") Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type I'm probably stupid and mi...
2002 Sep 13
1
[R] proposal: mosaicplot with sub and las
Two proposals for mosaicplot(): - The argument "sub" should not be ignored. Example: mosaicplot( HairEyeColor, sub = 'test of sub' ) - To be able to discern also longer axis labels the argument "las" or par(las=2) should not be ignored. Example: mosaicplot( HairEyeColor, las=2 ) Thanks Wol...
2019 Jan 04
2
Función mosaicplot() con alpha segun valor.
Feliz año a todos! Y al que sepa y tenga tiempo, una duda: Quiero hacer un análisis de distribución de léxico (supongo que da igual eso) mediante mosaicplot(), en particular me interesa que me muestre el peso de la distribución según una proporción que ya conseguí sacar; la de el uso de x termino en un espacio determinado. Ejemplo: Distribución de los términos, totales (tabla1) sitio1 sitio2 sitio3 terminoA 20 20 20 terminoB...
2006 Jan 29
3
Mosaicplot coloring (PR#8537)
Full_Name: Greg Kochanski Version: 2.2.1 OS: Debian Linux (testing) Submission from: (NULL) (212.159.16.190) mosaicplot(x, shade=TRUE) is intended to color the blocks blue if they are more common than one might expect and red if they are rarer than one might expect. Unfortunately, if a block is much rarer than expected, it is so narrow that one cannot see the red. Thus, a casual inspection of the mosaicplot will...
2006 Jul 19
1
plain shading (not residuals) in mosaic plot
...ir values for the variables rather than to reflect residuals. That is, I want all the tiles at the bottom, whose value for the x-axis variable is "substituted", to be dark grey, and those at the top, in the "unsubstituted" category, to be light grey. I know how to do it with mosaicplot(): > mosaicplot(morphs3,color=c(grey(0.8),grey(0.4))) ...but this doesn't work with mosaic(): the command "mosaic(morphs3,color=c(grey(0.8),grey(0.4)))" yields a plot with all tiles the same color. And conversely, I can't find a way to use mosaicplot() and add numeric labe...
2002 Sep 16
0
mosaicplot enhancements (PR#2023)
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 > ### Changes by W. F...
2010 Dec 15
1
problems with mosaic plot
I'm pretty sure that I did everything right, but my R is just not drawing the mosaicplot that I want, and there is also no error messege, looks like this right now: > mosaicplot(arthritis) > mosaicplot(~ sex + treatment + improved, data = arthritis, color = TRUE) > -- View this message in context: http://r.789695.n4.nabble.com/problems-with-mosaic-plot-tp3090128p3090128.htm...
2008 Oct 23
1
How to (simply) add table-values to a mosaicplot ?
Hello. I am looking for a way to add table values (from a "table" object) into a mosaic plot of that table (which is produced by the "mosaicplot" command on the table object). The only reference I was successful in finding on the web was in a script here: http://tables2graphs.com/doku.php?id=03_descriptive_statistics#figure_2 http://svn.tables2graphs.com/tables2graphs/Rcode/Final%20Code%20for%20Website/figure_2_iversen_table_1.R by us...
2005 Feb 18
1
Contingency tables profiles
Thank for your help I obtained profiles and I found mosaicplot as an interesting alternative. I don't like my solution about legend in profiles graphics: I inserted empty extra columns in order to avoid tue superimposed of legend. #Data N <- matrix(0,3,6) N[1,] <- c(7,7,5,0,4,4) N[2,] <- c(0,0,0,5,5,5) N[3,] <- c(4,4,0,0,3,0) rownames(N) &lt...
2005 Nov 07
1
mosaicplot() update
Hi -- I've found a need for an additional option to mosaicplot(), to suppress the labels. It's not difficult, obviously, a minor thing. Would you like me to submit my revised code (I'll use your code rather than my original source code which was adapted for S-Plus and R)? Or it might be a 5-minute change for the appropriate person. No problem eithe...
2006 Jan 29
1
mosaicplot() labels overlap (PR#8536)
Full_Name: Greg Kochanski Version: 2.2.1 OS: Debian Linux (testing) Submission from: (NULL) (212.159.16.190) This is really a feature request. When you do mosaicplot() on a data set where the probability of several nearby rows is small, then the labels for those rows are plotted overlapping each other. This situation can be improved by calling mosaicplot() with a large value of "off", but sometimes, even off=50 (the largest allowable value) isn't...
2006 May 21
3
Unreadable labels
Playing around with examples from MASS4, I found a font problem in the mosaicplot in R-2.3.0. It doesn't happen in other plots. Running this example from MASS4, page 326... library(MASS) caith1 <- as.matrix(caith) names(dimnames(caith1)) <- c("eyes", "hair") mosaicplot(caith1, color = TRUE) ...I get an image as attached. The column and row labels...
2001 Nov 30
1
mosaic.by(): vectorizing args passed by apply()?
I've just started learning R, so I'm still on the steep part of the learning curve, but my enthusiasm was heightened by learning that there's a very nice implementation of mosaicplot(). As a learning project, I've already done a basic implementation of a pairs.table() function which does a mosaic scatterplot matrix, and now I'm trying to do conditional mosaic plots (discrete analog of a coplot). I found that apply(table, by, mosaicplot,...) worked quite nicely, but...
2008 May 02
1
A horizontal or vertical line draw on mosaic plot?
Hi, I want to have a horizontal line on a mosaic plot with "vcd" package. This would give me an idea where is 0.5 proportion in a cell. Using "mosaicplot" function of "graphics" package, I can draw a line using "abline." But, with "mosaic" function of "vcd" package, I have tried to use "abline" function, which complains "plot.new has not been called yet". Is there a way to draw...
2005 Apr 15
2
abbreviate or wrap dimname labels
For a variety of displays (mosaicplots, barplots, ...) one often wants to either abbreviate or wrap long labels, particularly when these are made up of several words. In general, it would be nice to have a function, abbreviate.or.wrap <- function(x, maxlength=10, maxlines=2, split=" ") { } that would take a character...
2011 Apr 11
1
read in summarised data as table()
I have some summarised data from a 2D pivot table which I want to visualise in R. How can I read in the data as a R table so I can use mosaicplot()? Dirk -- View this message in context: http://r.789695.n4.nabble.com/read-in-summarised-data-as-table-tp3442283p3442283.html Sent from the R help mailing list archive at Nabble.com.