Re: [R] Controlling R fonts through LaTeX

2012-11-08 Thread Karen Kotschy
s/yihui/knitr/knitr-manual.pdf and > https://github.com/downloads/yihui/knitr/knitr-graphics.pdf > > Regards, > Yihui > -- > Yihui Xie > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > &

[R] Controlling R fonts through LaTeX

2012-11-08 Thread Karen Kotschy
Dear help list Does anybody know if it is possible to somehow tell R to let LaTeX handle the fonts for postscript plots produced by R? It is for a thesis and I have MANY figures. These are created by R scripts dynamically as the document is compiled, using the Make system. I see that I can `manua

Re: [R] Function Gini or Ineq

2010-09-04 Thread Karen Kotschy
Hi Marcio You might like to look at some equivalents from the field of ecology, for which there are existing functions. Have a look at the function "diversity" in the package "vegan". This provides the Simpson diversity index, which is the complement of the Gini coefficient (Gini = 1 - Simpson

Re: [R] Sweave

2010-08-17 Thread Karen Kotschy
Dear Randall I do it like this: \begin{center} \setkeys{Gin}{width=0.7\textwidth} \begin{Scode}{fig=T, echo=F} ... \end{Scode} \end{center} Hope this helps. Karen On Wed 18Aug10, Randall Wrong wrote: > Dear R users, > > I am using Sweave. > > I would like to use the width opti

Re: [R] replacing values in a vector

2010-08-17 Thread Karen Kotschy
g(vec)){ > r <- numeric(n) > r[i] <- vec[i] > assign(paste("vec.", letters[i], sep = ""), r) > } > > > I hope it helps. > > Best, > Dimitris > > > On 8/17/2010 12:57 PM, Karen Kotschy wrote: > >Dear helpRs > >

[R] replacing values in a vector

2010-08-17 Thread Karen Kotschy
e resulting character strings as object names to which values can be assigned? Thanks! Karen --- Karen Kotschy Centre for Water in the Environment University of the Witwatersrand, Johannesburg, South Africa -- This message has been scanned for viruses and dangerous content by MailSca