Displaying 20 results from an estimated 10000 matches similar to: "wrap long lines in table using "latex" in Hmisc"
2010 May 12
4
a question about "latex" in Hmisc
Hi list,
Excuse me b/c this is probably a more "TeX" then "R"
question.
I've been using "latex" function in my .Rnw file to
generate tables, but I've always been using it without assigning the
result to a object, i.e.
x <- matrix(1:6, nrow=2,
dimnames=list(c('a','b'),c('c','d','this that')))
latex(x)
so, I
2009 Jan 22
2
"latex" in Hmisc: cell formating
Hi list,
Could you explain the error I see here? Thanks!
## I'm using R 2.8.0 on WinXP, Hmisc_3.4-3
> table1 <- matrix(10, 180,7)
> cell.format <- matrix("", ncol=7, nrow=180)
> cell.format[c(seq(3,180,6),seq(4,180,6)),] <- "color{red}"
> cell.format[c(seq(5,180,6),seq(6,180,6)),] <- "color{green}"
>
> latex(table1,
2011 Mar 14
1
Math characters in column heading using latex() in Hmisc
Hi Everybody
I want to print a latex table containing math characters in the column
heading
These are the formulae I want to use as column headings. It prints OK from
TeX
$\sum_{i}\sum_{j}C_{P,i,j,y}\times\mathit{FC}_{i}$, $XU_{alt,y}$, $n$,
$\bar{C}_{P,y}$
My plan was to create a character vector with these and later rbind the
values to them. When I create the vector like:
2009 Sep 06
3
[Hmisc] Latex to pdf
I would like to print some tables and figures to a PDF device on a CentOS 5
vps. However, I cannot seem to get the latex function from Hmisc working. I
followed the example, and got an error: sh: xdvi: command not found. I tried
installing the 'tetex-xdvi' linux package, and now it returns: Error: Can't
open display. I guess the reason for this is that the machine is a VPS
terminal, so
2010 Jan 26
3
Formatting cgroup and factor level labels in Hmisc latex function
I'm trying to typeset at simple crosstable with the Hmisc latex function. And I have two problems.
1. How do I make all columns the same width? The Latex function seems very unwilling to break the 'cgroup' labels and the factor level labels. Please have look at this screenshot that shows my problem:
>> http://hem.passagen.se/stpe9096/table.png
So, how can I make sure that the
2010 Apr 16
3
problem with FUN in Hmisc::summarize
Hi all,
I'd like to use the Hmisc::summarize function, but it uses a function (FUN)
of a single vector argument to create the statistical summaries.
Consider an easy case: I'd like to compute the correlation between two
variables in my dataframe, grouped according to other variables in the same
dataframe.
For exemple, consider the following dataframe D:
V1 V2 V3
A 1 -1
A 1
2009 Nov 12
1
Rearranging long tables, Sweave, xtable, LaTeX
Dear R-users,
consider the two following outputs, ## 1 and ## 2
\begin{Scode}{Setup, echo = FALSE, print = FALSE, eval = TRUE}
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2)) ## 1
xtable(with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2))) ## 2
\end{Scode}
The first line
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2))
2007 May 18
1
How to extract R codes that embedded in a HTML file
> -------- Original Message --------
> Subject: Re: [R] How to extract R codes that embedded in a HTML file
> using Stangle?
> Date: Thu, 17 May 2007 17:01:30 +0000
> From: Tao Shi <shitao at hotmail.com>
> To: ligges at statistik.uni-dortmund.de, lecoutre at stat.ucl.ac.be
> CC: r-help at stat.math.ethz.ch
> : <jmcconnell at
2010 Apr 29
3
Can't load "doSMP" from REvolutionR in regular R2.11.0
Hi list,
I was testing out the "doSMP" package from REvolutionR in my regular R2.11.0 installation and I got the following error message.? Well, one obvious thing is that R2.11.0 was built using "i386-pc-mingw32" which is different from what revoIPC used.? I could just use REvolutionR, but all my R peripherals were set up to work
with the regular R2.11.0.? So, I really want
2004 Apr 25
5
a simple suggestion for the next version of R windows
Is it possible to replace the word "R Console" on the title bar (is it what
it's called? It's the blue area above menu bar) with the name of the work
space file you're using or loaded, so people who are runing multple R
sessions at same time can identify them immediately. I'm using 1.9.0 in SDI
mode.
Thanks,
...Tao
2004 Apr 25
5
a simple suggestion for the next version of R windows
Is it possible to replace the word "R Console" on the title bar (is it what
it's called? It's the blue area above menu bar) with the name of the work
space file you're using or loaded, so people who are runing multple R
sessions at same time can identify them immediately. I'm using 1.9.0 in SDI
mode.
Thanks,
...Tao
2010 May 05
1
'matplot' for matrix with NAs: broken lines
Hi list,
I know that points involving NAs are not plotted in 'matplot', but when I plot them as lines, I still want the lines to connect all the points (i.e. not broken where there are NAs).? Please see the example below.? How can I achieve this in 'matplot'?? If I can't, any good alternatives so I don't have to use 'plot' + 'lines' and loop through all the
2008 Jun 26
2
a question regarding package building
Hi List,
In Windows, if I do " R CMD build mypkg", then I'll get 'mypkg_1.0.tar.gz'. Any option in R CMD build lets me to change the version, i.e. gives me 'mypkg_2.0.tar.gz"? It seems "-version" option doesn't do anything for me.
Is it OK if I just change the version number in the file name manually?
Thanks,
...Tao
2011 Aug 31
1
Hmisc Latex Question: column headings and Major Column Headings not properly alligned
Dear R users:
When I create a table without Major Column headings, my *regular* column headings appear correct in the typeset latex file. The major row heading and row groups are as they should.
w <- latex(mytab,title="",file="tab/my.tex",ctable=TRUE,caption="Descriptive statistics by
2011 Feb 21
1
Tips to export R plots (dotplot function) into latex
I'm looking for some tips on how to export R plots into latex. I can't
centered the plots in latex (shift to the right).
--
-Tony
[[alternative HTML version deleted]]
2007 Jul 26
2
Creating windows binary R package (PowerArchiver vs. zip -r9X)
Hi list,I apologize if you see funny fonts, b/c I'm using the new Windows Live Hotmail and don't know how to turn off the "rich text" mode.....I have successfully built and installed a R package in windowsXP for R-2.5.1. But when I tried to create a .zip file so I can use "Packages/install package(s) from local .zip files..." to install it, it seems R only recognizes
2011 Mar 02
4
Plot with same font like in LaTeX
Hi,
i want to make my plots look uniform in LaTeX documents.
- usage of the same font on axes and in legend like LaTeX uses
(for example "Computer Modern")
- put real LaTeX formulas on the axes
Have you any hints how i can achieve that?
I had no luck two years ago, but i want to try it again now.
kind regards,
--
Jonas Stein <news at jonasstein.de>
2011 Aug 22
3
automatic file input
Dear all,
I have 100 files which are used as input.and I have to input the name of my files again and again.the name of the files are 1.out, 2.out......100.out.
I want to know if there is anything like perl so that i can use something like this-
for($f = 1; $f <= 100; $f++) {
$file = $f.".out";
I have tried this thing in R but it does not work.Can somebody please help me.
2011 Feb 11
6
linear models with factors
i am trying to fit a linear model with both continuous covariates and
factors. When fitted with the intercept
term the first level of the factor is treated by R as intercept and the
estimate of the effects of remaining levels(say i th level) are given as
true estimate of i th level - estimate of 1st level.can any please help me?
thanks in advance.....
--
View this message in context:
2012 Apr 23
2
.rda vs. .RData
Are they the same with .RData being the newer format?? Thanks,
...Tao