Displaying 20 results from an estimated 20 matches for "strucplot".
2008 Aug 17
1
how to override/replace a function in a package namespace?
I'm trying to test an extension of mosaic() from the vcd package that
requires a change to the
basic strucplot() function from that package. I want to test my change
by sourcing the
replacement function into my R session.
But when I do that,
source("c:/R/mosaics/strucplot-MF.R")
and run my extension, it is apparent that it is vcd:::strucplot that is
eventually called, not
my replacement. Thus...
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
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
2011 Mar 30
4
fonts in mosaic
I need to change the font(s) used in mosaic from package vcd.
The help file and the vignette do not give very explicit examples for
doing that.
The easiest solution would be changing the font for everything
on the graph: var labels, var names, title, subtitle, and cell labels.
What is the easiest way of accomplishing this?
2005 Nov 28
2
str and structable error
Hallo
I encountered a behaviour which puzzles me (but
finally I did get what I wanted).
I used structable and strucplot but I wanted to change
names of variables in structable object. I tried to subset
it, use names but to no avail. So I tried str and
expected to get a structure of an object but:
> sss<-structable(Titanic)
> str(sss)
Error in "[.structable"(x, args[[1]], ) : subscript out of...
2012 Apr 06
2
Changing grid defaults
...notes in class, I use a dark background with light
foreground colors. It's easy enough to change the defaults for R's
standard graphics to match my color scheme (using the fg, col.axis,
col.lab, col.main, and col.sub parameter settings), but I can't figure
out how to do this with grid/strucplot/vcd.
>From my experiments, I think that I might eventually figure out how to
change the colors of all the text in the mosaic plots to what I want
using arguments like 'gp_args = list(gp_labels = gpar(col = "yellow")'
and 'gp_varnames = gpar(col = "yellow")' (...
2005 Oct 20
0
vcd package 0.9-5 released
...ar useRs,
a new version of the vcd package (0.9-5) is now available from CRAN.
Apart from (a lot of) bug fixes, it includes the following new features
(some of them have 'silently' been included in previous bug fix
releases):
* Improved documentation:
- an introductory vignette on the strucplot framework (including
mosaic, association and sieve plots)
- special vignettes on using/extending shading and labeling functions
* New function spine() for spinograms and spine plots
* New function cd_plot() for conditional density plots
* New function cotabplot() for visualizing condition...
2005 Oct 20
0
vcd package 0.9-5 released
...ar useRs,
a new version of the vcd package (0.9-5) is now available from CRAN.
Apart from (a lot of) bug fixes, it includes the following new features
(some of them have 'silently' been included in previous bug fix
releases):
* Improved documentation:
- an introductory vignette on the strucplot framework (including
mosaic, association and sieve plots)
- special vignettes on using/extending shading and labeling functions
* New function spine() for spinograms and spine plots
* New function cd_plot() for conditional density plots
* New function cotabplot() for visualizing condition...
2013 Feb 08
1
color query in mosaic in package vcd
require(vcd)
mosaic(matrix(1:6, 2, 3), gp=gpar(fill=c("red","gray","blue")), main="three
colors in each row")
mosaic(matrix(1:3, 1, 3), gp=gpar(fill=c("red","gray","blue")), main="only
one color in each row")
I anticipated three colors in the second plot. My guess is that there is
a matrix subscript without
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
2005 Jul 04
0
New version of "vcd" package
...x plots of available components, or to
modify plot elements
after they have been drawn.
* new flexible framework for mosaic and association plots
Extended mosaic and association plots are now integrated in a completely
new
generic framework for the visualization of contingency tables (so-called
`strucplots').
The new design modularizes labeling, shading, spacing, and drawing of
legends, and
also the cells' content by the use of panel functions.
Powerful labeling functions offer much more flexibility for adding
labels
(e.g., no restrictions on the number of dimensions, flexible positioning...
2005 Jul 04
0
New version of "vcd" package
...x plots of available components, or to
modify plot elements
after they have been drawn.
* new flexible framework for mosaic and association plots
Extended mosaic and association plots are now integrated in a completely
new
generic framework for the visualization of contingency tables (so-called
`strucplots').
The new design modularizes labeling, shading, spacing, and drawing of
legends, and
also the cells' content by the use of panel functions.
Powerful labeling functions offer much more flexibility for adding
labels
(e.g., no restrictions on the number of dimensions, flexible positioning...
2005 Sep 16
1
How to make two figures in one plot - package vcd
Dear all,
I have a problem to make figures with two columns in package vcd.
Here an example code I take from "\library\vcd\html\plot.loglm.html"
What I need, I want to make two figures in one plot.
How could I do that.
I have tried with
layout(rbind(c(1, 1, 2, 2)))
but the same result, two plot.
Best wishes, Muhammad Subianto
library(vcd)
oldpar <- par(mfrow=c(1, 2))
## mosaic
2011 Sep 03
1
Lmer plot help
Hello all
I'm running the lme4 package on my binomial data, and I'm happy with the
model and the resultant plot. However, I'd like to plot my table data, which
has: two IVs, and one DV. You can see an example below, where 'attractive'
= question (IV), male = condition(IV/predictor) and no/yes = answer (dv).
I'm using the table to investigate what questions act differently
2013 Jul 06
0
Modificar una función de un paquete
Muchas gracias Eva.
Manuel
2013/7/5 Eva Prieto Castro <evapcastro@yahoo.es>
> Hola, Manuel:
>
> Si descomprimes el tar.gz indicado por Marcuzzi, y accedes a la subcarpeta
> R, en el archivo legends.R buscas la cadena p-value, y en el archivo
> strucplot.R es donde creo que modificas el "Pearson residuals" (busca por
> "Pearson\nresiduals").
>
> Saludos.
> Eva
>
>
> ------------------------------
> *De:* Manuel Spínola <mspinola10@gmail.com>
> *Para:* "Marcuzzi, Javier Rubén" <jav...
2013 Jul 04
1
Modificar una función de un paquete
...) > 0)
> x <- aperm(x, c(condvars, seq(dl)[-condvars]))
>
> if (is.null(spacing))
> spacing <- spacing_conditional
> }
>
> ## spacing argument
> if (is.null(spacing))
> spacing <- if (dl < 3) spacing_equal else spacing_increase
>
> strucplot(x,
> condvars = if (is.null(condvars)) NULL else length(condvars),
> core = struc_mosaic(zero_size = zero_size, zero_split =
> zero_split,
> zero_shade = zero_shade, zero_gp = zero_gp, panel = panel),
> split_vertical = split_vertical,
&g...
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
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
2013 Jul 04
2
Modificar una función de un paquete
Estimados miembros de la lista.
Estoy trabajando con la función mosaic del paquete vcd. Cómo puedo hacer
para ver el contenido fe la función y modificar algunos de sus argumentos?
Muchas gracias,
Manuel
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola@una.ac.cr
2013 Jul 04
0
Modificar una función de un paquete
...names(dimnames(x)))
if (length(condvars) > 0)
x <- aperm(x, c(condvars, seq(dl)[-condvars]))
if (is.null(spacing))
spacing <- spacing_conditional
}
## spacing argument
if (is.null(spacing))
spacing <- if (dl < 3) spacing_equal else spacing_increase
strucplot(x,
condvars = if (is.null(condvars)) NULL else length(condvars),
core = struc_mosaic(zero_size = zero_size, zero_split =
zero_split,
zero_shade = zero_shade, zero_gp = zero_gp, panel = panel),
split_vertical = split_vertical,
spacing =...