search for: labeling_args

Displaying 10 results from an estimated 10 matches for "labeling_args".

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, margin = 0,gp_text=gpar(fontsize=20))...
2011 Oct 31
1
Help combining cell labelling and multiple mosaic plots
...e Treatment" =c('Agree', 'Disagree')) grid.newpage() pushViewport(viewport(layout=grid.layout(1,2))) pushViewport(viewport(layout.pos.col=1)) mosaic(.test, gp=shading_hsv, pop=FALSE, split_verticaL=FALSE, newpage=FALSE, labeling_args=list(offset_varnames=c(top=3), offset_labels=c(top=2))) labeling_cells(text=round(prop.table(.test, 1), 2)*100, clip=FALSE)(.test) popViewport() pushViewport(viewport(layout.pos.col=2)) mosaic(.test1, gp=shading_hsv, newpage=FALSE,pop=FALSE, split_vertical=FALSE, labeling_args=list(offset_varna...
2008 Sep 26
2
adjusting textsize and spacing in mosaic (vcd package)
...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 most of the text sizes, but not the numbers on the legend scale mosaic(HairEyeColor, shade = TRUE, labeling_args=list(gp_labels=gpar(fontsize=16), gp_varnames=gpar(fontsize=18)), legend_args=list(fontsize=16), margins=unit(4, "lines"), legend_width=unit(7, "lines")) How do I change the size of the text on the legend scale? Also, is there a way to change all the font sizes...
2011 Oct 31
0
(no subject)
...lige Treatment" =c('Agree', 'Disagree')) grid.newpage() pushViewport(viewport(layout=grid.layout(1,2))) pushViewport(viewport(layout.pos.col=1)) mosaic(.test, gp=shading_hsv, pop=FALSE, split_verticaL=FALSE, newpage=FALSE, labeling_args=list(offset_varnames=c(top=3), offset_labels=c(top=2))) labeling_cells(text=round(prop.table(.test, 1), 2)*100, clip=FALSE)(.test) popViewport() pushViewport(viewport(layout.pos.col=2)) mosaic(.test1, gp=shading_hsv, newpage=FALSE,pop=FALSE, split_vertical=FALSE, labeling_args=list(offset_varnam...
2010 May 12
2
Finding different hues for a mosaic plot compatible with grayscale printing
...uals clearly. Your assistance is appreciated. >mosaic(~educ+trade_off_scaled, shade=TRUE, main="Support For Environmental Protection At The Expense of Creating Jobs By Education", gp=shading_hcl(CST17$observed, CST17$expected, ASR17, df=6, h=c(260,0), c=c(100,0), l=c(90,0)), labeling_args=list(rot_labels=c(25,90,0,0), offset_labels=c(1,0,0,2), offset_varnames=c(2,0,0,4), set_varnames=c(trade_off_scaled="Protecting The Environment Is More Important Than Creating Jobs", educ="Level of Education"))) ********************************* Simon J. Kiss, PhD SSHRC a...
2006 Jan 27
1
monochrome mosaic plot in vcd package
...,1,8, labels = LETTERS[1:2]) term.2 <- gl(2,2,8, labels = LETTERS[3:4]) term.3 <- gl(2,4,8, labels = LETTERS[5:6]) cell.count <- c(72, 19, 5, 8, 117, 115, 81, 85) mosaic(loglm(formula = cell.count ~ term.1 + term.2 + term.3), shade = TRUE, gp = shading_hcl, legend = TRUE, labeling_args = list(rot_labels = rep(0,4)), gp_args = list(lty = 1:2),legend_width = unit(0.2, "npc")) ------------------------------------------------------------ Dr Michael Townsley Senior Research Fellow Jill Dando Institute of Crime Science University College London Second Floor, Brook...
2012 May 02
0
adding a caption to a mosaic plot?
...(100, 1, 0.5), labels=c('female', 'male')), hair=factor(rbinom(100, 1, 0.5), labels=c('blonde', 'black'))) mosaic_1<-table(mydat) mosaic(mosaic_1, gp=shading_hsv, main='my title', pop=FALSE, split_vertical=FALSE, margins=c(4.1, 2.1, 8, 5.1), labeling_args=list(rot_labels=c(left=0), offset_labels=c(left=3), gp_main=gpar(cex=2), offset_varnames=c(left=5.5), gp_labels=gpar(cex=1.5), gp_varnames=gpar(cex=1.5), labeling_values=c('observed'))) labeling_cells(text=round(prop.table(mosaic_1, 1)*100), gp_text=gpar(ces=2), clip=FALSE)(mosaic_1) *****...
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
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?
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...is stops the default cell colouring, and doesn't > change the font size > mosaic(HairEyeColor, shade = TRUE, gp=gpar(fontsize=16)) > > #This successfully changes most of the text sizes, but not the numbers on > the legend scale > mosaic(HairEyeColor, shade = TRUE, > labeling_args=list(gp_labels=gpar(fontsize=16), > gp_varnames=gpar(fontsize=18)), > legend_args=list(fontsize=16), > margins=unit(4, "lines"), > legend_width=unit(7, "lines")) > > How do I change the size of the text on the legend scale? > > Also, is t...