[R] Size problem with two dotcharts side by side

Jean lobry lobry at biomserv.univ-lyon1.fr
Sun Oct 8 20:56:31 CEST 2006


Dear all,

I'm trying to produce two dotcharts side-by-side within a Sweave
document. When I'm compiling this example:

\documentclass{article}
\begin{document}
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) dotchart(1:10)
@
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) hist(1:10)
@
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) plot(1:10)
@
\end{document}

I obtain the following:
http://pbil.univ-lyon1.fr/members/lobry/mini.pdf
that is with the second dotchart (on the right) smaller than the
one on the left. I do not have the same problem with
hist() or plot().

Any idea of what should I do for my two dotcharts to be of
the same size?

Best,

>  sessionInfo()
R version 2.4.0 (2006-10-03)
powerpc-apple-darwin8.7.0

locale:
fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"
-- 
Jean R. Lobry            (lobry at biomserv.univ-lyon1.fr)
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - LYON I,
43 Bd 11/11/1918, F-69622 VILLEURBANNE CEDEX, FRANCE
allo  : +33 472 43 27 56     fax    : +33 472 43 13 88
http://pbil.univ-lyon1.fr/members/lobry/



More information about the R-help mailing list