Displaying 20 results from an estimated 100 matches similar to: "adding a caption to a mosaic plot?"
2011 Oct 31
1
Help combining cell labelling and multiple mosaic plots
Dear colleagues
I'm using data that looks like .test and .test1 below to draw two mosaic plots with cell labelling (the row percentages from the tables).
When I take out the pop=FALSE commands in the mosaic commands and comment out the two lines labelling the cells, then the plots are laid out exactly as I'd like: side-by-side.
But I do require the cell labelling and the pop=FALSE
2011 Oct 31
0
(no subject)
Dear colleagues
I'm using data that looks like .test and .test1 below to draw two mosaic plots with cell labelling (the row percentages from the tables).
When I take out the pop=FALSE commands in the mosaic commands and comment out the two lines labelling the cells, then the plots are laid out exactly as I'd like: side-by-side.
But I do require the cell labelling and the pop=FALSE
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,
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
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
2010 Jul 07
4
Gray level mosaic plot with shading_Friendly
Suppose we start with
data("Titanic")
mosaic(Titanic, shade = TRUE)
How do I combine the dashed box contours of shading_Friendly to indicate negative residuals, with three levels of gray: dark for abs(Pearson Resid) > 4, lighter for 4 > abs(Pearson Resid) > 2, and lightest for bs(Pearson Resid) < 2 ?
Thanks,
Michael
______________________________________________
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 Feb 10
0
Solution for multilanguage caption lookup speed improvement?
Hello.
In my Rails app i have a helper method called "translate":
def translate(name)
tran = Translation.find_by_name(name)
...
...
end
As you can see, the method does a lookup in the table "Translation",
where i have an index in the field "name".
This is working well, but in a single page i can have dozens of captions
to translate, and there are several
2010 Dec 04
1
scale caption on levelplot
hi,
i am trying to figure out how to put a caption on the colour scale of a
levelplot. there does not seem to be an option for this in levelplot().
i tried using mtext() but as soon as you put the text far out enough on
the right of the plot, it goes beyond the plot boundary. so i tried to
extend the margin on the right of the plot using par(mar) but this did
not have any effect on the plot area.
2004 Mar 03
1
R2HTML adding caption to data-frame
Hi,
I was wondering if there was an easy way to add a caption to a data frame when it is being sent to a html page using R2HTML.
currently the following command will produce a reasonably formatted table in a html file
HTML(mydataframe)
It would be good if you could send caption with the table something like
HTML(lCaption="my table caption",mydataframe) # this works but leaves a blank
2011 May 29
1
One main caption for an mfrow=c(2,1) plot window
Hello,
I'm trying to plot a series of pages in a pdf with one main caption for
each page.
Each page should then have two plots in one row, preferably with an own
caption.
I can't plot the main caption in a window, and subsequently plot the two
graphics (next to each other) below it.
Here is what I've tried. This one almost does the job, but when plotting
the two graphics, R
2011 Aug 10
1
xtable - caption missing with float=FALSE
Hi,
For some reason I'm finding that my table caption is disappearing if I
print xtable output with the floating argument set to FALSE. Below is a
very simple Sweave file that produces two tables the first has no
caption and the second has a caption (if you want to see it
http://www.zevross.com/temp/test.pdf).
Does anyone know what I can do to fix this?
Zev
(I'm using Windows 7, 64
2009 Apr 28
1
plot.lm cex.caption
Hello dear R users,
My objective is to change the size of this graphic : plot(lm(a~b), 4)
(Cook's distance)
I have found the help on the internet saying to change the size of a title
on a graphic plot(lm(a ~ b), 4), I should use the graphic parameter
cex.caption
http://stat.ethz.ch/R-manual/R-patched/library/stats/html/plot.lm.html
But in my install of R, it answers cex.caption isn't a
2010 Jul 13
2
Wrap column headers caption
Hi:
Using this dataframe with quite long column headers, how can I wrap the
text so that the columns are narrower. I was trying to use strwrap without
success. Thanks
reportDF <- structure(list(IDDate = c("3/12/2010", "3/13/2010", "3/14/2010",
"3/15/2010"), FirstRunoftheYear = c("33 (119 ? 119)", "n (0 ? 0)", "893 (110 ?
2011 Nov 18
2
xtable and sweave: caption placement problem
Dear All
I am running Sweave with xtable and want to put the caption placement
on top. But this does not work. Any idea what is going wrong?
Here is an example that runs properly with the exception of the
caption placement in the pdf-file.
\documentclass[11pt,a4paper]{article}
\usepackage{Sweave}
\begin{document}
<<>>=
x = runif(100, 1, 10)
y = 2 + 3 * x + rnorm(100)
2012 Aug 21
2
Sweave: R chunk inside caption?
Hi Folks,
I'm surprised, but I didn't find this question addressed anywhere. I'd
like to generate a LaTeX caption with R code. I've tried the code
below, but I get the following TeX error:
! Argument of \@caption has an extra }.
<inserted text>
\par
l.21 }
Any thoughts? Perhaps I'll have to write the "\caption{}" text with R?
thanks!
2012 Jun 22
6
Definition list as image caption
recently though about image captions, then i realized that this could be achiebed by Markdown Extra's definition list feature:
![alttext](http://exampl.com/img.jpg)
: here goes the *caption*
What do you think?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Aug 25
1
Mosaic plot using ggplot2
Hello,
I would like to know if mosaic plots are supported by ggplot2? If so,
can someone point me to a couple of examples or give me any pointers?
Cheers
Rahul
2009 May 04
1
mosaic plot with two factors and one continous variable
Hello,
my dataset is already aggregated: I have two categorical variables, say
"continent" and "country" and one non-negative metric variable "population".
Now I would like to produce a mosaic plot which uses "population" to
determine how large each area of the plot is.
In other words, I fail to find out
- how to use the mosaic function of the vcd package
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