Displaying 20 results from an estimated 400 matches similar to: "Latex fonts in R graphics"
2009 Nov 17
3
CM Fonts in PDF output
Hi!
On Linux I try to produce pdf graphs with computer modern fonts so that they
look nice in LaTeX documents. I run for example:
------
CM <- Type1Font( "CM",
c("/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmr8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmb8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmri8a.afm",
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",
2009 Aug 30
3
Computer Modern Fonts in R graphic
Hello all,
I am trying to use computer modern fonts in my r grahics. I tried to do,
as described here: http://www.stat.auckland.ac.nz/~paul/R/CM/CMR.html
but unfortunately, it does not work.
First of all I downloaded the cm-lgc package and the AFM and PFB-files
from the page and put them in my R working directory, so far, so good.
Then I tried to run the following code:
> sn <-
2009 Sep 04
3
eps file with embedded font
Dear list,
I am trying to make eps file with embedded font.
I use:
postscript("ranking-exp-all.eps", horizontal=TRUE, onefile=FALSE,
paper="special", height=8, width=12, family="Helvetica")
# plot stuff
dev.off()
since R does not embed font, I then use:
embedFonts(file="indegdistr.eps", outfile="indegdistrEMB.eps",
2011 Aug 09
1
embedFonts() does not embed fonts?
Dear helpers,
I'm trying out the embedFonts() to embed fonts into my pdf files.
However, when I inspect the new pdf with a program designed to look
for embedded fonts, I see that the fonts have in fact not been
embedded. Below are my calls.
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
2009 Aug 04
1
Sweave, cm-lgc and minus signs
Hello,
since a couple of days I'm trying hard to elicit a certain thing
out of the Sweave function of R. Unfortunately I'm quite unsuccessful.
It's only about a small, ridiculous minus sign, which does not appear
in the final pdf of a latex file, if I try to incorporate the Computer-
Modern fonts into the plot. It seems, that R uses different encodings
for minus signs, which are put
2009 Sep 01
1
Logistic Politomic Regression in R
Hi everyone,
I'm trying to do an Logistic Politomic Regression in R. Because I have my resposes variables and the aswer is 0 and 1 in 3 bacterial genes. Somebody know how to do this in R in a easy way?
Thank so much,
José Bustos
Facultad de Ciencias
Universidad Catolica Ssma.
Concepcion
Chile
--- El lun, 31/8/09, r-help-request@r-project.org <r-help-request@r-project..org>
2007 Mar 31
1
Too long pathname in bitmap() crashes R on WinXP
Hi,
using too long pathnames for bitmap() crash R on WinXP. I've verified
that this is the case with R version 2.4.1 Patched (2007-03-25 r40958)
and R version 2.5.0 alpha (2007-03-30 r40957). I cannot reproduce it
on Linux.
REPRODUCIBLE EXAMPLE:
% Rterm --vanilla
# Tell R where Ghostscript is
gsexe <- "C:/gs/gs8.54/bin/gswin32c.exe";
gsexe <- "C:/Program
2011 Mar 27
1
grImport/ghostscript problems
Hi All:
I've been struggling for a while trying to get grImport up and running. I'm on a Windows 7 (home premium 64 bit) machine running R-2.12.2 along with GPL Ghostscript 9.01.
I've set my Windows PATH variable to point to the Ghostscript \bin and \lib directories, and I've created the R_GSCMD environment variable pointing to gswin32c.exe.
I don't have any experience with
2012 Apr 20
1
R CMD check: Sys.getenv("R_GSCMD") cannot contain full pathname (contrary to docs)
Hi,
in help("R_GSCMD") it says "R_GSCMD: Optional. The path to
Ghostscript, used by dev2bitmap, bitmap and embedFonts. Consulted when
those functions are invoked.". However, if 'R_GSCMD' contains a full
pathname to the Ghostscript executable (as above "path" indicates),
e.g.
> Sys.getenv("R_GSCMD")
[1] "C:\\Program
2011 Jan 14
1
How to point R toward Ghostscript on a Windows XP system
A colleague designed a script for a bar plot, which I'd like to export to my directory via the barplot command:
bitmap(file="barplot.tif", type="tifflzw", height=4, width=6.5, res=1250)
Unfortunately, this command produces the following error message:
Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) :
'gswin32c.exe' not found
2004 Aug 23
2
R on windows problem
Hi,
I've installed several versions of R on a number of Window
systems. I get the following error message (which I don't get on linux)
> dev2bitmap(file="test.jpeg",type="jpeg")
Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) :
gswin32c.exe not found
Any idea how to fix this? It seems common to all windows systems
2010 Aug 19
1
error with bitmap, please help
Hi All
I still have a problem with ?bitmap? function in R, I have downloaded
ghostscript 8.71 and added the path to the executable to the path
environment variable, by going to the control panel , system, advanced
system settings, added C:\Program Files(x86)\gs\gs8.71\bin to the path
variable. I have also added the R executable path to the path variable. I
have a 64 bit computer with windows 7
2005 Jun 03
3
plots from batchfile on windows
Hi,
On windows I'd like to run a batchfile that leaves me a plot. As a
test I have the scriptfile "test.r" which only contains:
x <- 1:10;
y <- sample( 10 )
plot( x, y )
Now I tried the following (but nothing worked):
a) "R --vanilla < test.r" in the cmd window, => that doesn't give me a plot
b) the same, but I added
2010 Mar 30
2
jpeg() saving blank files?
Hi,
I am having trouble saving graphics from R. jpeg() saves a file with
the correct name to the correct directory, but it consists of a blank
(white) jpeg with the specified dimensions--the image itself is not
being saved.
My code is
jpeg(filename="myfile.jpg",
height = 2.5, width = 8, units = "in", res = 72,
pointsize = 12, quality = 100, bg = "white",
2009 Dec 08
0
[LLVMdev] How to run vmjc created .bc files?
Hi Michael,
On Tue, Dec 8, 2009 at 6:26 PM, Michael Wu <mmwu at princeton.edu> wrote:
> Hi,
>
> Thanks a lot for the help! I am getting some errors though:
>
> I am on a 32 bit chroot on a x86_64 system. Thus llc guesses the wrong
> architecture from the module bitcode and spits out x86_64 assembly. I fixed
> this by adding "-march=x86" to the llc options
2007 Jan 12
7
Making TIFF images with rtiff
Many medical journals and publishers require that images, whether
photographs or line art, be submitted as high resolution .TIFF images.
One option for R users is to produce an image in one format and to
convert it to a .TIFF file using a second software program. My
experience has been that this option often results in images of poorer
quality, often with blurry contours, and a loss of
2009 Dec 09
2
[LLVMdev] How to run vmjc created .bc files?
Hi,
I've managed to compile it the class down to a native executable.
However, the executable runs for a while then spits out:
terminate called without an active exception
Aborted
and dies.
The program never gets to the normal output.
Here is a stack trace from gdb:
#0 0xf3f6baa6 in raise () from /lib/libc.so.6
#1 0xf3f6d3a8 in abort () from /lib/libc.so.6
#2 0xf41918f8 in
2014 Jul 14
1
Error in compactPDF/find_gs_cmd or documentation?
I am using tools::compactPDF for reducing the size of some pdf-files
with GhostScript. I had some trouble in the beginning as the
documentation seems not to match the usage of the function. For
GhostScript, one has to set the argument gs_cmd, which has the following
description:
gs_cmd - Character string giving the path to the GhostScript executable,
if that is to be used. On Windows this is
2009 Dec 08
2
[LLVMdev] How to run vmjc created .bc files?
Hi,
Thanks a lot for the help! I am getting some errors though:
I am on a 32 bit chroot on a x86_64 system. Thus llc guesses the wrong
architecture from the module bitcode and spits out x86_64 assembly. I
fixed this by adding "-march=x86" to the llc options in llcj.
gcc doesn't know what -lgc is. I'm guessing it is the garbage collection
library. How can I get it or