Displaying 20 results from an estimated 3000 matches similar to: "eps/pdf write help"
2009 Mar 11
4
R-help: grep in for loop using index - doesn't work
Hi everyone
I am trying to use grep in a for loop to compare a string value. It works
if I use
the actual index value but when I use the for loop index, it doesn't work.
Any suggestions plz.
Here is the code:
data <- read.table(file="Sigmoid.csv", head=FALSE, sep=",");
c1 <- data$V1
c2 <- data$V2
c3 <- data$V3
c1data <- data.frame(c1);
c2data <-
2009 Sep 04
1
generation of eps image
Hi,
Except the function postscript ('file_name.eps'), are there functions to generate an image file in eps format?
thanks
Carol
[[alternative HTML version deleted]]
2007 May 01
1
creating eps files
Hello,
For a long time, I have been creating eps files from R using the
following command:
dev.copy2eps(file="my.eps")
This has worked very well. But recently, the compositor of a journal is
complaining that
"The eps files would be useable except that they have not converted the
type to outlines"
Sorry for being vague, but I have no idea what this compositor is
talking
2002 Jan 27
1
SUMMARY: EPS->LaTeX problem
Earlier today I posted a problem importing an R graph into a LaTeX file of
seminar class: specifically, the graphic was showing up rotated 180
degrees, along with the rest of the page it was on.
In a real victory for open-source software, I got lots of responses with
three distinct approaches, each of which appears to solve the problem. Try
getting fast, correct help from Microsoft on a Sunday
2006 Mar 26
1
new to the list - problems with non-solid lines in eps export
Dear all,
I am new to this list and, unfortunately, could not provide help to anyone as
yet. I hope I can do so in the future, though! Until then, I am grateful for
helpful hints from you more experienced users.
For use in an upcoming publication, I generated an eps figure from my x11
window under Debian Linux with dev.copy2eps. It contains 28 line plots with 2
lines each, one solid and one
2004 Jan 15
2
Legend text -- discrepancy between X11 and postscript
Hi,
When I place a legend on a plot it looks exactly as I intended
on the screen. However, almost always, when I export this to
postscript file, the legend's text protrudes through the legend's
frame (the latter being placed correctly).
See the appended example code. I can send the EPS file as well
for those that are interested (<4 kb; <200 lines).
I found nothing in the FAQS,
2008 Nov 05
3
Efficient way to fill a matrix
Dear R experts,
Suppose I have a data frame of three variables:
> foo <- data.frame(row=1:5, col=1:3, val=rnorm(15))
> foo
row col val
1 1 1 -1.00631642
2 2 2 0.77715344
3 3 3 0.17358793
4 4 1 -1.67226988
5 5 2 1.08218836
6 1 3 1.32961329
7 2 1 -0.51186267
8 3 2 -1.20990127
9 4 3 -0.57786899
10 5 1 0.67102887
11 1 2
2001 Jun 13
2
Maybe OT: large fonts in eps-figures
Hi there,
if I copy an x11() graphics device to an eps-file (with dev.copy2eps())
the font in the legend is very large and doesn't fit to the legend box
in the eps-file (same with a postscript file). I'm not sure if this is a
R problem rather than a ghostscript one.
But is there a way to solve this problem in R or depends this on my
ghostscript installation?
System: R Version 1.2.3 on
2008 Nov 25
2
invoking user-defined function
Dear list,
Can somebody tell me how to invoke user-defined functions from script
files during run-time?
Basically I have (almost) one function per script file.
I am thinking of something like
#include in C++
import in Java/Python
use in Perl
No, I don't need my functions every time R is started.
Neither I am thinking about writing building my functions into
packages.
I just
2008 Jul 30
2
Bizarre - R crashes on merge
Hi all,
I have a large data.frame, 1530 observation with 6 columns. I want to
merge a 7th column, a transformation of the response variable (hospital
admissions), namely
trans<-sqrt(copd$admissions+0.25)
trans<-data.frame(trans)
And now when I do
copd2<-merge(copd,trans)
(copd being my original data.frame), R either crashes or is taking an
extremely long time to do the computation. I
2010 Jun 24
1
?to calculate sth for groups defined between points in one variable (string), / value separating/ spliting variable into groups by i.e. between start, NA, NA, stop1, start2, NA, stop2
Dear useRs,
Thanks for any advices
# I do not know where are the examples how to mark groups
# based on signal occurence in the additional variable: cf. variable c2,
# How to calculate different calculations for groups defined by (split by occurence of c2 characteristic data)
#First example of simple data
#mexample 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
2009 Jun 08
2
ridiculous behaviour printing to eps: labels all messed up!
OK, this is really weird!
here's an example code:
t1<-c(1,2,3,4)
t2<-c(4,2,4,2)
plot(t1~t2, xlab="exp1", ylab="exp2")
dev.copy2eps(file="test.eps")
that all seems fine...
until you look at the eps file created, where for some weird reason, if you
scroll down to the end, the code reads:
/Font1 findfont 12 s
0 setgray
214.02 18.72 (e) 0 ta
-0.360 (xp1) tb
2006 Mar 08
5
data import problem
Dear All,
I'm trying to read a text data file that contains several records separated by a blank line. Each record starts with a row that contains it's ID and the number of rows for the records (two columns), then the data table itself, e.g.
123 5
89.1791 1.1024
90.5735 1.1024
92.5666 1.1024
95.0725 1.1024
101.2070 1.1024
321 3
60.1601 1.1024
64.8023 1.1024
70.0593
2009 Feb 20
2
change attributes of all data.frame elements
Hi,
I was wondering whether there was an easy way to change the attributes
of all elements in a data.frame (rather than looping through elements)?
Specifically, I would like to set the "dim" attributes to NULL
Thanks for any help,
Jarrod
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
2003 May 27
3
0 margin for creating eps files
Dear all,
I am trying to create eps files of R plots (in Linux) so that I can import them into Word
(obviously in MS Windows). What I would like is for the files to be cropped so that there is no
margin around the actual plot, because I have no way of editing the files after they have been
created. I have tried using
par(mai=c(.75,.75,0,0))
in order to reduce the margin; it works fine when I
2010 Dec 14
2
300 dpi and eps:
Hi,
I have a run of 5 graphs that I want to place them under the same page.
Everything works fine to place them in a pdf file , or eps file, but
when it comes to have a high quality of
300 dpi these graphs are not good. For example I open the eps file with
Adobe Illustrator (AI) and it shows that it is a 72dpi graph. If I start
with a 72dpi graph AI cannot improve this to 300 dpi. Q: HOW CAN A
2009 Sep 07
2
Size of plots in pdf files#can it be smaller?
Hi all,
I have to produce arrangements of 25 simple plots of the type
plot(x,y,pch=".") where there are typically on the order of 20000 points.
So, overall, I have about 500000 points. When I use the pdf device, I
get file sizes (on a Windows machine) of about 10 MB.
When I then zip the files, I'm down to about 0.5MB, so the original pdf
files were created with a lot of
2009 Sep 17
3
latex code in R -> convert to pdf
hi,
is it possible to convert latex code to pdf in R (like a latex-program
would do it)?
Is there a package that comes with this capabilities?
My problem is that I want to generate tables automatically -
and I can't use a latex editor at that computer ...
Besides latex ... are there good ways to generate tables in R?
thanks for any suggestions!
2012 Dec 28
0
[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
On 12/28/2012 04:20 AM, Rafael EspĂndola wrote:
>> Suppose you have four lifetime operations on the same address in memory,
>> with loads and stores all around them:
>>
>> start1--end1 .. start2--end2
>>
>> If you remove start1 then you have a bare pointer, the memory came from
>> somewhere and you lose the optimization that loads before start1 become
2011 Jan 15
2
access to right time unit when checking for time execution
Hello,
I really wonder how to distinguish between secs and mins in the example
below.
In other terms, how can I access the time unit in variable d ?
start1 <- Sys.time();
stop1 <- Sys.time(); d <- stop1-start1; print(d);
v<-unlist(strsplit(as.character(d), split=" ")); print(v)
Time difference of 3.024054 secs
[1] "3.02405381202698"
stop1 <- Sys.time(); d