similar to: Tex fonts in R plots

Displaying 20 results from an estimated 1000 matches similar to: "Tex fonts in R plots"

2009 Apr 09
6
Cross-platforms solution to export R graphs
Hello Rusers, I have worked on a R Wiki page for solutions in exporting R graphs, especially, the often-asked questions: - How can I export R graphs in vectorized format (EMF) for inclusion in MS Word or OpenOffice outside of Windows? - What is the best solution(s) for post-editing/annotating R graphs. The page is at: http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export. I
2009 May 28
3
avoid a loop
Hello, R users. I have the following code: a=1:10 b=-3:15 n=5 x <- rep(0,n) for (i in 1:n) x[i] <- sum( outer(a,b, function(s,t) abs(a-b-i)==0) ) Can someone tell me if I could avoid the for command? Thank you in advance.
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",
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
2008 Oct 29
2
definition of a function
Hello, R subscribers. I would like to define a function like this one: Fun <- function(x) sin(x)/x with value 1 at x=0. How can I do that? Is there a way to plot it "symbolically", without using x as a vector? e.g. x <- seq(from=-10, to=10, length=100) plot(x, Fun(x)) Thank you in advance.
2006 Jan 07
1
packages and tex files
Dear R People: I am trying to build a package (yet again!) I have both PCTex and WinEdt. I want the *.tex files to use WinEdt. How should I set that, please? Just in the path? Also, where would I get Rd.sty, please? Thanks, R Version 2.2.1 Windows Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at
2009 Dec 04
0
New Package: pgfSweave
At long last pgfSweave has finally made its way to CRAN. The pgfSweave package is about speed and style of graphics. For speed, the package provides capabilities for ?caching? graphics generated with Sweave on top of the caching funcitonality of cacheSweave. For style the pgfSweave package facilitates the integration of R graphics with LaTeX reports through the tikzDevice package and eps2pgf
2009 Dec 04
0
New Package: pgfSweave
At long last pgfSweave has finally made its way to CRAN. The pgfSweave package is about speed and style of graphics. For speed, the package provides capabilities for ?caching? graphics generated with Sweave on top of the caching funcitonality of cacheSweave. For style the pgfSweave package facilitates the integration of R graphics with LaTeX reports through the tikzDevice package and eps2pgf
2005 Sep 05
12
TeX distribution on Windows
I'm looking for a Windows distribution of TeX that works with R, after a few years' absence from Windows. On Duncan Murdoch's Rtools page fptex is still recommended, but it turns out that fptex is "defunct" as of May 2005, see http://www.metz.supelec.fr/~popineau/xemtex-7.html So, what is suggested? TUG (tug.org) recommends something called proTeXt, which is said to be
2010 Dec 31
4
Sweave for "big" data analysis
Hi, Maybe I'm missing the point here...but let's suppose you are working with "large" data sets and using functions that take a significant amount of time to run in R. I woulnd't like to run these functions every time I call Sweave("myfile.Rnw") within R. What is the "common" practice to use Sweave in these situations. I would just run the function once,
2010 Feb 11
1
Sweve/cacheSweave
Hi there I have a problem with using Sweave in combination with the option driver = cacheSweave. Whichever code I try to run - when it comes to converting the tex file into pdf it comes up with the same errors (\csname \endcsname errors). Does anybody have an idea what it going wrong? > Sweave("pgfSweave-example.Rnw",driver = cacheSweaveDriver) Writing to file
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
2011 Sep 29
1
simplest pgfSweave example results in error
Hello, since 3 days now I try to get pgfSweave running using Eclipse + StatET. I created a super simple .Rnw file which can be viewed here: http://www.text-upload.com/read.php?id=147992&c=6441045 test.Rnw When I use sweave it works perfectly fine but when I use pgfSweave I get an error. The R output can be viewed here: http://www.text-upload.com/read.php?id=147995&c=3804886 R output
2007 Jan 31
2
PGF Device
Greetings all, PGF is a package for LaTeX which works with both ps and pdf output without any nasty hacks like pictex. Is there any technical reason why there could not be a PGF graphic device for R? If not, I'm going to try to throw one together. Any tips for getting started? Cheers, Caleb
2003 Mar 24
1
Winedt and R on Windows XP
Dear All; I have used Winedt editor in conjunction with R on the Win2K platform for more than a year without any problem. Recently I purchased a P4 machine with Windows XP. Following the installation of R1.62 and WinEdt 5.3 to separate directories, I copied R-WinEdt to the Plugins subdirectory under the Winedt directory, clicked on the "install" file and edited the Rprofile with two
2011 Feb 15
2
Sweave doesn't hand on width of special characters of Computer Modern fonts to LaTeX
Hello R users, Using R, Sweave and the cmsyase.afm font it is possible to write LaTeX documents including R figures with text in the Computer Modern Fonts: \documentclass{article} \usepackage{Sweave} \begin{document} <<echo = false, results = hide>>= CM <- Type1Font("CM", c(file.path("C:/texlive/2009/texmf-dist/fonts/afm/public/cm-lgc",
2011 Nov 23
1
R-latex syntax highlighting?
Hello, Can anyone provide or point me to a good setup for the listings latex package that would produce nice R-syntax highlighting? I am using an example I found in internet for setting up listings like this: \lstset{ language=R, basicstyle=\scriptsize\ttfamily, commentstyle=\ttfamily\color{gray}, numbers=left, numberstyle=\ttfamily\color{red}\footnotesize, stepnumber=1, numbersep=5pt,
2002 Jan 05
1
R-WinEdt question - answer
The answer to my question was contained in http://cran.r-project.org/contrib/extra/winedt/ReadMe , although it helped to receive the restatements that were emailed to me. As mentioned by Uwe Ligges, Renuad Lancelot, Niels Waller, my mistake was not starting R before using R-WindEdt. Below I will copy the instructions on using R-WinEdt by Renaud Lancelot (except for the last paragraph which is
2002 Dec 04
1
R-Winedt
Hello: I installed R-WinEdit according to the instructions, including those for setting the editor and pager options. Doesn''t seem to work--when I try to edit a file, I get the following: > > options(editor="\"c:/program files/winedt/winedt\" -c=\"R-WinEdt-edit\" > -e=r.ini -V") > > getOption("editor") >[1]
2010 May 11
2
RWinEdt in WinEdt 6
I'm having difficulty installing RWinEdt in WinEdt6. I receive the following message: Error : .onAttach failed in attachNamespace() for 'RWinEdt', details: call: getWinEdt() error: WinEdt is not installed properly. I have tried following the manual instructions in the readme.txt without success. I receive the following message: WinEdt's Initialization File "C:\Program