Displaying 20 results from an estimated 1000 matches similar to: "bug in dev.copy2pdf output?"
2012 Feb 06
1
Multi-page PDF using dev.copy2pdf(filename, onefile=TRUE)?
Hi all. I want to generate a sequence of n plots and save them into a single PDF file, one plot per page. From the R docs and other sources I gather the basic way to do this is save plot 1 into a file then append the 2:n plots to the same file.
This code shows my basic approach, but for some reason only the last plot is saved into the pdf. I've tried different variations (e.g. using onefile
2012 Dec 12
1
Multiple palettes on single plot don't get rendered when I use dev.copy2pdf
Hi All,
I'm having trouble with the colors on my screen getting translated to
the colors in the outputted .pdf document.
Here is a caricature of my problem:
par(mfrow=c(1,1))
x1 = rnorm(1000)
x2 = rnorm(1000)+10
y1 = rnorm(1000)+10
y2 = rnorm(1000)+10
palette(rainbow(6))
plot(x=x1,y=y1,col=y1,xlim=c(-10,20))
palette(heat.colors(6))
points(x=x2,y=y2,col=y2)
dev.copy2pdf(file =
2011 Jan 15
1
Truetype and Opentype font in pdf device
Deal all,
I want to know if truetype or opentype fonts are available in pdf
device (i.e., pdf() or dev.copy2pdf()), and if so, how to do it?
Now I can do as followings:
1. convert ttf to afm using ttf2afm, e.g.: $ ttf2afm Impact.ttf > Impact.afm
2. put the afm file in $R_HOME/library/grDevices/afm
3. register a new type1 font: pdfFonts(Impact=Type1Font("Impact",
2013 Feb 26
1
Help with graphs in A4 size
Hi,
I need to generate complex graphics which have to be shown in the plot window but also in pdf file, and they must have A4 size. This is the reason why I use width=8.27 and heigth=11.69.
The problem is that I don't make it runs when I put something (text, lines, and so on) outside the plot region.
I mean if I run the following code, it works perfectly, because the text "My
2003 Jun 17
1
help recoding
hi R-listers,
I would like some help recoding a variable. I have a dataframe 'cause'
that translates between a set of codes:
acc nds
- -
1 2
3 4
5 8
... ...
the desired result for dataframe 'p':
a
-
1
5
5
would be:
a b
- -
1 2
5 8
5 9
I have tried:
transform(p, b=cause$nds[cause$acc==p$a])
but for some reason it complains about the difference in length between
the
2013 Feb 26
15
Ayuda con dev.copy2pdf - Ejemplo reproducible
Buenos días:
Sigo cabezudeando con el tema de los gráficos; a ver si a alguien se le ocurre alguna idea...
Supongamos este código:
library(plotrix)
graphics.off()
windows(width=8.27, height=11.69)
plot(3:10)
#plot(3:10, main="Axis break test")
par(xpd=TRUE)
text(4, 11,"Axis break test")
axis.break()
axis.break(2,2.9,style="zigzag")
mtext("Texto
2004 May 13
1
Enabling checksum for individual files?
Hi all,
I tried to use rsync-2.6.2 to sync a set of subdirectories inside a
directory. While most of the files are being sync'd correctly, rsync
seems to wrongly consider one file as uptodate. Both the source and
destination have this file, with the same size and same date (according
ls says). But md5sum shows that they are different.
One possible solution is to enable the checksum, but it
2010 Jan 29
1
FracSim set.seed
Hi,
I am using the FracSim library to simulate a time series. However, the
simulate function ignores my attempt to set the RNG seed I need for
reproducible research. The published docs and google have not yielded an
answer, so any help greatly received.
Thanks,
Selwyn
## Example code snippet
library(FracSim)
## simulate some 1d fractal data
set.seed(1234)
sim1 = fracsim.1d(h=0.5,k=1000,n=5000)
2008 Oct 22
2
suboptimal lp solutions
Hi list,
I want to find the total maximum resources I can spend given a set
allocation proportion and some simple budget constraints.
However, I get suboptimal results via lp and friends (i.e. lpSolve and
simplex in the linprog and boot) .
For example:
library(lpSolve)
proportions = c( 0.46, 0.28, 0.26)
constraints = c( 352, 75, 171)
lp(objective.in = proportions,
const.mat =
2009 Feb 16
2
solve.QP with box and equality constraints
Dear list,
I am trying to follow an example that estimates a 2x2 markov transition
matrix across several periods from aggregate data using restricted least
squares.
I seem to be making headway using solve.QP(quadprog) as the unrestricted
solution matches the example I am following, and I can specify simple
equality and inequality constraints. However, I cannot correctly specify a
constraint
2011 Feb 14
2
saving plots
Hi all,
Is there a way to save the currently displayed plot to an image format just
after we view it?
I think this would be more intuitive as a user if I wish to save it just
after I visualize the plot.
I am aware that we need to do some thing like this
jpeg('somefilename.jpg')
... plot... commands...
dev.off()
KM
[[alternative HTML version deleted]]
2007 Jun 15
1
winbind AIX
I have installed Samba (from Binary) 3.0.25a on AIX 5.3
I'm trying to configure Winbind
I believe I need to copy winbind file to /usr/lib/security and modify
usr/lib/security/methods.cfg with ;-
"add WINBIND:
programs=/usr/lib/security/WINBIND........."
nmbd, smbd and winbindd all running
My problem is I cannot find a file called winbind on my system ?
Any help
2013 May 16
1
Cannot get Centrino N 6200 wireless NIC to work Cento 6.4
I installed Centos 6.4 on my laptop and neither of the network interfaces
will work. When I boot up to windows both the wired and the wireless
network interfaces work. I have attached dmesg output for the wireless
card. Reading through the messages it appears that OS cannot talk to the
NIC.
--
Selwyn Schultz
selwynsr at gmail.com
c. 616-836-8896
-------------- next part --------------
2009 Jan 28
2
Saving plot into file without showing it
Hi List,
My apologies in advance if question is simplistic, I am quite new to R graphics capabilities and I could not find anything in past threads...
I use R 2.8.1 under Mac OS X, but I would preferrably have a cross platform answer as I use also R under Windows
I produce plots using R & save them in a file
e.g. below:
y <- rnorm(1000)
x <- rnorm(1000)
plot(x,y)
2011 Aug 08
1
Xll.options().
This question seemed to me to be more appropriate for r-devel
than for r-help. My apologies if this is not the case.
Recently I installed ``cairo'' on my lap-top so that I could make
use of the (newish) polypath() function, with on-screen graphics.
(The polypath() function does not work with X11(type="Xlib").)
The installation went smoothly, X11(type="cairo") works
2017 Feb 20
2
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi
This appears to be happening (at least) because cairo_pdf() delays
initialising a Cairo surface until BM_NewPage(), rather than
initiliasing a Cairo surface in BM_Open(), and replayPlot() triggers
some activity (set clip region) on the device BEFORE a new page is
started (so the pointer to the Cairo surface is null, so BOOM).
Not sure yet whether to blame replayPlot() for not starting
2017 Feb 20
3
Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi,
I wonder if this is expected or I'm doing a wrong thing.
pdf()
dev.control('enable')
library("grid")
plot(1)
grid.text("A")
res = recordPlot()
dev.off()
cairo_pdf()
replayPlot(res)
dev.off()
*** caught segfault ***
address 0x4, cause 'memory not mapped'
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
2011 Oct 22
3
Sweave, cairo_pdf, CJK, ghostscript
I have had some fun in the last few days trying to put together an annotated map of China with R and some public GIS data:
http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download
It is done, and rather nice... there are a few issues:
- the default pdf() device cannot do CJK with embedded fonts - and cairo_pdf() is not hooked up to
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
2001 Mar 07
2
help with dev.copy2eps
HI!
I'm using the function dev.copy2eps to store a plot into a file.
How can I change the default name of the file and the path where the file
should be created ?
Thanks
--
Frank Gerrit Zoellner
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",