Displaying 20 results from an estimated 4000 matches similar to: "mosaic.by(): vectorizing args passed by apply()?"
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 think
there's a bug, but not sure how to find it, yet alone fix
2008 Sep 26
2
adjusting textsize and spacing in mosaic (vcd package)
I'm trying to find a way to change the font size in a mosaic plot (the
grid version, not the base graphics one).
Here's an example to demonstrate:
#Basic plot
library(vcd)
mosaic(HairEyeColor, shade = TRUE)
#Bad first guess: this stops the default cell colouring, and doesn't
change the font size
mosaic(HairEyeColor, shade = TRUE, gp=gpar(fontsize=16))
#This successfully changes
2006 Jul 19
1
plain shading (not residuals) in mosaic plot
Hello. I've been using R for a couple of months and enjoying it a lot.
This is my first post to R-help.
I'm using the vcd package to make mosaic plots with labels on the tiles
indicating the number of items in each cell.
For example, I've made this plot:
> allmorph<-structure(c(10, 26, 17, 100, 70, 97, 253, 430, 185, 177,
> 25, 1), .Dim = as.integer(c(6, 2)), .Dimnames
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
2015 Feb 07
3
how to draw paired mosaic plot?
If there are many character variables,and I want to get the mosaic plot of every pair of each variable,how to do then?
If the variables are numeric, I can use pairs to get paired scatter plot.
But as to the character variables, how to get the "paired mosaic plot"?
Many thanks.
--
QQ: 1733768559
At 2015-02-07 17:04:26,"Jim Lemon" <drjimlemon at gmail.com>
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
Wolfram
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.html
Sent
2010 Mar 22
3
Mosaic Plots
Hello Everyone
I want to plot Moasic Plots, I have tried them using iplots package (using
imosaic). The problem is the names dont get alligned properly, is there a
way to a align the names and provide legend in Mosaic plots using R?
Also I would like to know any other packages using which I can plot Mosaic
Plots
Thank you in advance
Sunita
--
View this message in context:
2008 Nov 17
1
Levelplot + Mosaic Plot hybrid?
Hi. I have built a levelplot with 3 variables, X, Y, and Z where X and Y are the two axes and Z represents the intensity (i.e. Z~X*Y).
Now I want to adjust the size of the grid (like a mosaic plot) where the size of each grid is weighted by a variable, W.
Just wonder how can I do that with levelplot?
I tried exploring mosaic plot. How can I manipulate the "col" option to make it
2007 Sep 19
4
fontsize in mosaic plot lables
Hi List,
I am trying unsucessfully to modify the fontsize of lables in mosaic:
require(vcd)
mosaic(Titanic, pop=FALSE,
labeling_args=list(rot_labels=c(bottom=90,top=90),
set_varnames = c(Sex = "Gender"),
gp_text=gpar(fontsize=20))) #can't get it to resize text
tab <- ifelse(Titanic < 6, NA, Titanic)
# it works for labeling_cells
labeling_cells(text = tab,
2006 Aug 30
4
Barplot
Dear all,
I have a dataset. I want to make barplot from this data.
Zero1 <- "
V1 V2 V3 V4 V5 V6 V7 V8 V9
1 1 0 0 0 1 0 0 0 Positive
2 0 0 1 0 1 0 1 1 Negative
3 0 0 1 0 0 0 1 1 Positive
4 0 1 0 1 1 1 0 1 Negative
5 0 0 1 0 1 1 0 0 Positive
6 0 1 0 0 1 1 1 1 Negative
7 1 0 1 1 1 1 1 1 Negative
8 0 0 0 0 1 0 0 1
2015 Feb 06
3
how to draw paired mosaic plot?
Hi all:
If there are two numeric variable:x,y, and I can get paired scatter plot by function "pairs".But if x and y are character, and I want to get paired mosaic plot,which function should be used then?
Many thanks!
My best.
--
QQ: 1733768559
[[alternative HTML version deleted]]
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
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
2012 Mar 13
1
Visualising multiple response contingency tables
Dear R Help Community,
I have a question and an answer (based on reading this forum and online
research), but I though I should share both since probably there's a much
better way to go about my solution. My question is specifically about how
to best visualise multiple response contingency tables. What I mean by
'multiple response' is that the total number of responses per row of a
2011 May 01
1
multiple mosaic plots layout
I would like to display multiple mosaic plots from vcd (not defined by a model but derived from different data sets)
side by side.
Neither par(mfrow=...)
nor layout seem to allow to arrange multiple mosaic plots in a grid.
Is there an easy way of arranging mosaics in a grid?
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
2008 May 02
2
mosaic plot of "vcd" package does not stretch with 2-dimension?
Hi,
I like mosaic function of "vcd" package. I have played around it. I
have found out that mosaic plot data table is 2-dimension does not
stretch when you enlarge a mosaic plot. It is okay when data table is
3 or more dimension. The first one is of 3-dimension table case, and
the second one is 2-dimension. With the first plot, you can drag
window to enlarge a plot. With the
2013 Jul 04
1
Modificar una función de un paquete
Muchas gracias Javier,
Lo que yo quiero es cambiar el título de la leyenda que dice "Pearson
residuals" a español "Residuales de Pearson", pero no me doy cuenta como.
También en lugar de "p-value", que diga "Valor de P". Es posible?
Manuel
2013/7/4 Marcuzzi, Javier Rubén <javier.ruben.marcuzzi@gmail.com>
> Estimado Manuel Spíndola
>
>
2007 May 09
1
voronoi.mosaic chokes?
Hi all,
I am running R 2.5.0 under Windows XP Media Center Edition. Here's a
problem that's been stumping me for a few days now, and I can't find
anything useful in the archives. I am using voronoi.mosaic (tripack
package) to create proximity polygons for a study of vegetation
competition and dynamics. The points lists are read in from a file for
each plot, then 8 duplicates