similar to: Controlling R fonts through LaTeX

Displaying 20 results from an estimated 6000 matches similar to: "Controlling R fonts through LaTeX"

2013 Apr 03
1
Alternativas a pgfSewave
Hola a todos: Con la entrada de R 3.0 en Debian Sid me acabo de llevar la sorpresa de que pgfSweave ya no esta mantenido [0]. He intentado compilarlo pero depende de otros paquetes que también se encuentran en el archivo: highlight y parser. En concreto este último falla al compilar (y ahí se acaba el intento). Estaba utilizando pgfSweave por la facilidad para incluir gráficos en Tikz -sin
2013 Jul 05
4
Alternativas a pgfSewave
Me interesa este tema. Estoy empezando ahora a ver el tema de armar documentos directamente con R y no estoy seguro en dónde me centro. Por lo que veo sweave y knitr son las dos grandes alternativas (de echo, no se siquiera si no son compatibles o complementarias). Para quien arranca en este tema y que pretende continuar sobre el mismo, que recomiendan, arrancar por sweave o por knitr?
2010 Aug 17
4
replacing values in a vector
Dear helpRs Does anyone have an elegant way of doing the following: For a given numeric vector, e.g. vec <- c(3,2,6,4,7) Create a series of vectors where all but 1 of the values are replaced by 0's, e.g. vec.a <- c(3,0,0,0,0) vec.b <- c(0,2,0,0,0) vec.c <- c(0,0,6,0,0) vec.d <- c(0,0,0,4,0) vec.e <- c(0,0,0,0,7) I have looked at `replace', but can't think of a
2012 Dec 02
1
Problem with figures
I am having problem making ggplot2, tikzDevice, and knitr working together. I used a very simple example: ---------------------------example.Rnw----------------------------- \documentclass[preview]{standalone} \begin{document} \begin{figure} <<fig1,eval=TRUE,echo=FALSE,dev='tikz'>>= library(ggplot2) qplot(displ, hwy, data = mpg, colour = factor(cyl)) @ \end{figure}
2011 Feb 16
2
tikzDevice compiling problem
Hi guys. The tex file which compile the following graphic has many problems. I don't know what's happening. Any input would be really appreciated. # Cargo el prgrama que produce el c?digo en Latex require(tikzDevice) # Establezco directorio del programa setwd('/Users/fabiangarcia/Documents/R') # El siguiente programa produce el archivo tex tikz('CobbGRAF.tex',
2010 Sep 11
2
Latex fonts in R graphics
Hello, R users. I am trying to embed Computer modern fonts to an R plot and I get the following error. CM <- Type1Font("CM", + c(paste("cm-lgc/fonts/afm/public/cm-lgc/", + c("fcmr8a.afm", "fcmb8a.afm", "fcmri8a.afm", "fcmbi8a.afm"), sep=""), + "./cmsyase.afm")) > pdf("cm.pdf",
2005 Jun 28
2
enhanced MDS
Hi again Sorry, in looking again at sammon and isoMDS I see that they seem to do exactly what I want, except that they are non-metric, which means, as I understand it, that they relate the rank orders of the variables rather than the actual distances. Could I use these non-metric MDS packages even if my distances are metric? Thanks Karen -- Karen Kotschy Centre for Water in the Environment
2011 Oct 14
1
pgfSweave-example not compiling
I'm trying to get pgfSweave up and running. Hopefully I can get it working from within LyX, but first I'm just trying to get the simplest possible thing (compiling one of the example files in the pgfSweave package) to work. I'm using the example that comes in the pgfSweave package unmodified, but for reference I copied it to: http://pastebin.com/tW4RL6fs Configuration: R version
1999 Aug 26
1
error bars on barplots
Hello again I'm trying to put error bars onto a barplot. I've tried something that Bill Simpson suggested a while ago, ie: x<-c(1,2,3,4,5) y<-c(1.1, 2.3, 3.0, 3.9, 5.1) ucl<-c(1.3, 2.4, 3.5, 4.1, 5.3) lcl<-c(.9, 1.8, 2.7, 3.8, 5.0) plot(x,y, ylim=range(c(lcl,ucl))) arrows(x,ucl,x,lcl,length=.05,angle=90,code=3) #or segments(x,ucl,x,lcl) but I can't get it to work on a
2016 May 13
2
Latex y gráfico
Estimado Freddy Omar López Quintero Muchas gracias. Probé de su sugerencia el ejemplo 3.4, pero me falla, copio y pego todo el código junto al error > library(tikzDevice) tikz(?figs/simpleEx.tex?,width=3.5,height=3.5) plot(1,main=?Hello World!?) dev.off() Error: unexpected symbol in "library(tikzDevice) tikz" > Algo anda mal. Javier Rubén Marcuzzi De: Freddy Omar López
2005 Jul 12
3
adding a factor column based on levels of another factor
Hi R users Does anyone out there have a better/quicker way of adding a factor column to a data frame based on levels of another factor? I have a (large) data frame consisting of records for individual plants, each represented by a unique ID number. The species of each plant is indicated in the column "species", which is a factor column with many different levels (species). There are
2016 May 09
2
Latex y gráfico
Estimados Hay varias alternativas para utilizar latex dentro de R, concretamente por ejemplo una ecuación matemática dentro de un gráfico. Pero para un caso se me ocurre utilizar líneas que conecten partes de gráficos, por ejemplo, supongamos que hay dos barras con tres o cuatro divisiones, digamos, 25% cada una, de la primera desde una de estas me gustaría realizar una flecha, hacia la segunda
2012 Dec 10
1
Ayuda tikzDevice
Buenos días; Aunque ya llevo un tiempo con LaTeX y R no he conseguido que me funcione la librería tikzdevice. El primer problema está con tikzDictionary que me da como error: cannot create lock file. He estado buscando información en Google pero sin éxito. No he conseguido solucionarlo indicando un archivo en RProfile con options(tikzMetricsDictionary = ''path/archivo''). Cuando
2005 Jun 28
1
enhanced multidimensional scaling?
Dear R list Would anyone be able to tell me whether it is possible to do "enhanced multidimensional scaling" (enhanced MDS) in R? In other words, something that goes beyond "cmdscale" by iteratively improving the fit between observed dissimilarities and inter-object distances, using the KYST algorithm (Kruskal, 1964). I have found several implementations of non-metric MDS
2013 Jul 18
1
Looking for knitr example for beginner (NO RStudio)
Hi everyone, I am using package knitr, FIRST TIME. I don't have access to RStudio. Read through Yihui's page, didn't find it helpful. Stuck on terms Rnw, GFM (GitHub Flavored Markdown). Never used Sweave, so the reference is not helping. Is there a simple step-by-step example WITHOUT RStudio? My question: What is the procedure? The documentation explains the functions, but does
1999 Dec 21
2
generating a sequence
Hi everyone I'm trying to generate a vector of the form a <- c(1,2,3,4,1,2,3,1,2,1) where n = 5 in a general way, where n can be any positive integer. I've run out of ideas. Does anyone have any suggestions? Thanks Karen Karen Kotschy Centre for Water in the Environment University of the Witwatersrand Johannesburg Tel: 011 716-2218
1999 Dec 21
2
generating a sequence
Hi everyone I'm trying to generate a vector of the form a <- c(1,2,3,4,1,2,3,1,2,1) where n = 5 in a general way, where n can be any positive integer. I've run out of ideas. Does anyone have any suggestions? Thanks Karen Karen Kotschy Centre for Water in the Environment University of the Witwatersrand Johannesburg Tel: 011 716-2218
2017 Jun 12
2
Paths in knitr
Hi Yihui, Hi Duncan, I corrected my typo. Unfortunately knitr did not find my plots in the directory where they reside which is different from the Rmd document. The documentation of knitr says: base.dir: (NULL) an absolute directory under which the plots are generate root.dir: (NULL) the root directory when evaluating code chunks; if NULL, the directory of the input document will be used
2017 Jun 12
0
Paths in knitr
Will there be anything wrong if you do not set these options? Regards, Yihui -- https://yihui.name On Mon, Jun 12, 2017 at 2:24 AM, <G.Maubach at weinwolf.de> wrote: > Hi Yihui, > Hi Duncan, > > I corrected my typo. Unfortunately knitr did not find my plots in the > directory where they reside which is different from the Rmd document. > > The documentation of knitr
2014 Jan 03
1
Sweave trims console output in "tex" mode
Hi In the example .Rnw file below, only the newline between c and d is visible in the resulting .tex file after running R CMD Sweave. What is the reason for this behavior? Newlines are important in LaTeX and should be preserved. In particular, this behavior leads to incorrect LaTeX code generated when using tikz(console=TRUE) inside a Sweave chunk, as shown in the tikzDevice vignette. A