similar to: how to run a linux syntax within an R script?

Displaying 20 results from an estimated 10000 matches similar to: "how to run a linux syntax within an R script?"

2009 Oct 22
3
PDF too large, PNG bad quality
I wish to save a scatter plot comprising approx. 2 million points in order to include it in a LaTeX document. Using 'pdf(...)' produces a file of size about 20 MB, which is useless. Using 'cairo_pdf(...)' produces a smaller file, around 3 MB. This is still too large. Not only that the document will be too large, but also PDF viewers choke on this. Moreover, Cairo has problems
2008 Apr 16
1
Converting from encapsulated postscript to encapsulated pdf
I have several old encapsulated postscript graphics generated by R that I want to include in a LaTeX Beamer presentation so I want them in pdf. Under Ubuntu linux typing convert z.eps z.pdf (to use ImageMagick) results in a nice looking graphic but the bounding box is lost. Doing convert z.eps z.epdf results in a fuzzy image with a good bounding box. Does anyone have a nice solution?
2004 Apr 03
2
a fix for rotated PDF graphs
Hi, I have found references for the following problem in the list archives, but no nice solution. So I decided to post one I came up with. The problem is that graphs output as eps files, for example using ps.options(onefile=FALSE, paper="special", width=8, height=8, horizontal=FALSE, pointsize=12) get rotated when I convert them to pdf using epstopdf. Both ghostview and
2001 Jan 09
1
Setting fontsize in dev.copy2eps
I have a figure on screen with a legend. I want to copy this image to EPS, and use: dev.copy2eps(file="file1.eps", width=5, height=5) The legend that looks OK on screen doesn't look OK in the PostScript image: the text extends out of the box. I try adding a fontsize command: dev.copy2eps(file="file1.eps", width=5, height=5, pointsize=5) This options seems to
2004 Feb 20
1
unexpected postscript output with par(mfg)
Hi, a colleague of mine encountered some unexpected behavior regarding the postscript output from R. It's difficult for me to tell whether or not this is an R problem or a ghostview/gv/interpreter problem. Just to note, I think it's exactly the same situation reported here: http://finzi.psych.upenn.edu/R/Rhelp02/archive/25436.html The following code produces a working plot (no
2010 Sep 15
1
running 'make' failed during vignette creation ('R CMD build') on Windows
Hi, This is a follow-up to the problem reported here: https://stat.ethz.ch/pipermail/r-devel/2010-September/058460.html After I updated R-2.12 to 2010-09-13 r52905 on the Bioc build system, some of the packages that have a Makefile in <pkg>/inst/doc still don't build on Windows. For example, 'R\bin\R.exe CMD build adSplit' gives: * checking for file
2007 Mar 09
1
pdf device bounding box?
dear R wizards: I have a very simple suggestion/question. Would it be easy to change the pdf device so that it adds a BoundingBox around its output? (Under R 2.4.1, this seems not to be the case, because epstopdf under linux complains. Fortunately, it still works correctly.) This is not a big deal, but it would be nice if R did so, if only to help some pdf programs that are less adept at
2009 Jan 20
1
Problem with cyrillic in postscript
Hi all, When I plot some graph with cyrillic (namely russian) titles it looks ok, but after saving this figure as eps file I get damaged title fonts. The command dev.copy2eps was used in the following manner: dev.copy2eps("test.eps") or, for example dev.copy2eps("test.eps",family='NimbusSan') What is wrong? I use R 2.6.0 under Windows. Any help will be appreciated.
2003 Jun 05
1
dev.copy2eps: Why did the colors come into my postscript output?
On a RedHat 7.3 system with R-1.6.1, I did this > x11(width=3.5,height=4,colortype="gray") Then plotted (with matplot) a nice looking no-color graph on the screen, then I did this: > dev.copy2eps(file="test.eps",height=4,width=3.5) I was surprised that the output in the eps file included the colored lines from the plot, even though the screen device was set to
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
2009 Mar 05
2
identify() and postscript output
In the following, I'm fitting a logistic regression model, and using car:::influencePlot. When I run the latter with output to the screen, it calls identify() that lets me label observations with large CookD. However, if I use postscript() to get .eps output, identify() seems not to be called at all. If instead, I use dev.copy2eps() after getting output to the screen, the point labels
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
2002 Feb 05
1
eps Portrait to pdf now rotated since gs6.5 --- why?
Hi list, this question has probably been answered but I haven't found a solution in the archives: The older ghostscript gs5.50 (debian,stable) deals well with R-plots: epstopdf yields pdfs with the same orientation as the eps-file. But, since gs6.5 (or earlier) the dimension of the plot is interpreted: if x-width exceeds y-width even a Portrait-eps is rotated to Landscape. A possible
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
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
2000 Dec 29
1
dev.copy2eps: position of figure on page
The definition for dev.copy2eps contains the following line: oc$paper <- "special" The result of this is that the output will be placed in the left bottom corner of the page. Even though dev.copy2eps is meant for creating files that are to be included into other documents, you might want to print the figure directly, just to see how it will look on paper. (Of course, this will
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,
2000 Dec 20
1
Shortcut for dev.copy2eps
I want to use a shortcut for copying figures to EPS. I defined this function in .Rprofile: ps <- function(file="Rplot.eps", width=7, height=7, ...) { dev.copy2eps(file=file, width=width, height=height, ...) } This doesn't work: > data(cars) > plot(cars) > ps() Error in device(...) : Object "width" not found Can anyone tell me
2004 Mar 03
9
Publication quality graphs
Dear all, A journal in which we wanted our manuscript published requires the figures as a tiff, eps or PowerPoint formated. I tried converting .jpeg files to these formats but it looses its quality both on the screen and on paper. Could some one please help. Thanks in advance, ____________________ Sivakumar Mohandass, Department of Entomology, Kansas State University [[alternative HTML