Displaying 20 results from an estimated 1000 matches similar to: "vcd package --- change layout of plot"
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,
2005 Oct 20
0
vcd package 0.9-5 released
Dear 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
2005 Oct 20
0
vcd package 0.9-5 released
Dear 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
2006 Jan 27
1
monochrome mosaic plot in vcd package
helpeRs,
I have a nice looking mosaic plot in an article to be published
soon. Sadly, the published version will be in black and white and so ruin
the advantage of the default shading scheme of tiles.
What would readers suggest as an alternative shading scheme? If I have a
black-and-white shading scheme graduated according to suitable cutoffs I
won't be able to tell positive from
2010 May 12
2
Finding different hues for a mosaic plot compatible with grayscale printing
I'm working with the following code below to generate a
how do I set the h,c, and l values such that the significant, positive
residuals appear different on a grayscale printer from significant
grayscale residuals. The challenge as I see it is that one can only
distinguish the positive and negative residuals with the hue/. Varying
the chroma and the luminance only affect the
2012 Dec 18
2
Changing Variable Names In VCD
Hello:
What is the most efficient way to change the plotted variable names in mosaic plots in the vcd package? Should one do a separate contingency table first, change the dimension names there and then pass that to mosaic?
Or is there a way to do it simply within mosaic.
I was thinking something like:
mosaic(~var1+var2, labelling_args=list(varnames=c('newvar1', 'newvar2'))
Simon
2010 Mar 24
2
Mosaic
Hi,
I have this data set:
obitoss = c(
5.8,17.4,5.9,17.6,5.8,17.5,4.7,15.8,
3.8,13.4,3.8,13.5,3.7,13.4,3.4,13.6,
4.4,17.3,4.3,17.4,4.2,17.5,4.3,17.0,
4.4,13.6,5.1,14.6,5.7,13.5,3.6,13.3,
6.5,19.6,6.4,19.4,6.3,19.5,6.0,19.7)
(dados = data.frame(
regiao = factor(rep(c('Norte', 'Nordeste', 'Sudeste', 'Sul',
'Centro-Oeste'), each=8)),
ano =
2012 May 02
0
adding a caption to a mosaic plot?
Dear all:
Is there a way to add text to the margins or outer margins of a mosaic plot using the vcd package? I understand the margins argument to mosaic, but I don't know how to add text to that.
I'd like to add a caption to a plot. If possible, I'd like to know how to set the font and size for that function as well. My plot looks roughly as below.
Thank you for your time!
Simon J.
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]],
2004 Sep 16
1
barplot with vcd library
'barplot' doesn't seem to work with vcd library.
Am I supposed to detach vcd when I want to use barplot?
Here's an example.
Say I have the following matrix,
> m <- matrix(c(1,2,3, 4,5,6, 3,4,5, 2,3,4), ncol=4)
> m
[,1] [,2] [,3] [,4]
[1,] 1 4 3 2
[2,] 2 5 4 3
[3,] 3 6 5 4
Then
> barplot(m)
gives a barplot of the data.
However,
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
2005 Jan 06
2
library vcd for R rw2001
Is there an upgrate of the vcd library (visualisation of categorical data) for the latest R version?
Trying to download it from CRAN I get
URL /data/WWW/ftp/pub/R/bin/windows/contrib/r-release/vcd_0.1-3.4.zip was not found on this server.
googling it, I found it for instance on
http://www.sourcekeg.co.uk/cran/bin/windows/contrib/1.9/
but trying to install it gave me the message
>
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 Dec 06
2
vcd package, assoc()
Hello,
I am trying to use the extended assocplot() function: assoc(), from vcd
package. Trouble is that it cannot even run its own examples on my
installation. I get this output:
$> example(assoc)
assoc> data("HairEyeColor")
assoc> (x <- margin.table(HairEyeColor, c(1, 2)))
Eye
Hair Brown Blue Hazel Green
Black 68 20 15 5
Brown 119 84 54
2008 Jul 11
1
Plot multiple datasets on a VCD ternary graph
I need to plot multiple sets of data, on one Ternary plot (from the VCD
package). Since they all need to be formatted differently, I can't just
coerce them into one matrix, I need three separate calls. Is there a way to
do this? Thanks
--
View this message in context: http://www.nabble.com/Plot-multiple-datasets-on-a-VCD-ternary-graph-tp18412092p18412092.html
Sent from the R help mailing
2005 Mar 20
2
VCD tracks to theora
Hello,
I am looking for a way to convert VCD tracks to theora.
I'd rather a command line tool.
What would you suggest me?
I already found I can do that with mplayer, by ripping to yuv and wav,
then using the encoder_example to compress to theora, but would there be
another better way?
--
ASPO Infog?rance http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc
2009 Jun 17
1
getting cd_plot in vcd package to work with layout
Hi,
I'm trying to get 2x2 (or other layouts) of cd_plot from the vcd package. I
have tried the usual commands like layout, par(mfrow...) etc and but cd_plot
seems to ignore them and send the plotting window back to 1x1. I have also
tried turning off the pop and newpage options in cd_plot but I still can't
get multiple cd_plots into a plotting window.
Any suggestions would be greatly
2009 Jul 23
1
goodfit() in vcd package: computation of chi-squared
I have troubles understanding how goodfit() function in the vcd package
computes the Pearson coefficient. Can anybody provide more information
on the computation?
In particular, for HorseKicks data in vcd package, goodfit() yields
> oo <- goodfit(HorseKicks,type="poisson",method="MinChisq")
> summary(oo)
Goodness-of-fit test for poisson distribution
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
2011 Aug 28
1
How to add a legend to a goodness-of-fit plot (vcd:goodfit)?
Hello,
Sample code:
library("vcd")
dummy <- rnbinom(200, size=1.5, prob=0.8)
gf <- goodfit(dummy, type="nbinomial", method="MinChisq")
plot(gf)
I would like to:
1. add a lgened stating the bars show the actual counts and the red
dots - the fit.
2. show the goodness-of-fit values calculated somewhere on an empty
white space ob the plot.
But... the legend