search for: copy2pdf

Displaying 20 results from an estimated 31 matches for "copy2pdf".

2011 Jul 28
3
bug in dev.copy2pdf output?
Hi, Am using R 2.13.1 on Linux (Fedora). Is anybody else having problems with dev.copy2pdf xyplot output with the pch=1 (open circle) symbol? The symbols come out as "q" in the PDF. dev.copy2eps produces the correct results as does cairo_pdf. Other symbols produced with dev.copy2pdf seem ok. Thanks, Selwyn
2012 Feb 06
1
Multi-page PDF using dev.copy2pdf(filename, onefile=TRUE)?
...ations (e.g. using onefile only in the second call, or only in the first), to no avail. The comments show what I see if I step through the code one line at a time:  scratch<-function() {  graphics.off()  plot(1:7, 1:7) # Opens a graphics window and displays a 7-point plot in it, as expected  dev.copy2pdf(file="test.pdf", onefile=TRUE) # I see the 7-point plot in Adobe reader, as expected  plot(1:5, 1:5) # Overwrites in the graphics window the 7-point plot with a 5-point, as expected  dev.copy2pdf(file="test.pdf", onefile=TRUE) # Overwrites test.pdf so that it contains only the 7...
2013 Feb 26
15
Ayuda con dev.copy2pdf - Ejemplo reproducible
...aphics.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 adicional", side=1, line=2) text(4, 9,"Texto") dev.copy2pdf(file="IntentoEnesimo.pdf",height=11.69, width=8.27) shell.exec(file.path(getwd(), "IntentoEnesimo.pdf")) Como podéis comprobar, el título "Axis break test" aparece en la pantalla gráfica, pero no en el pdf. Ésto es así porque lo escribo con text(). Si retiro la línea...
2012 Dec 12
1
Multiple palettes on single plot don't get rendered when I use dev.copy2pdf
...d 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 = "broke.pdf", height = 8, width = 8) I plot the two normal blobs in two different color palettes, and it looks fine on the screen. I go to look at the PDF, and they are BOTH in heat map. How would I render both palettes on the pdf? Many thanks, Andrew
2013 Feb 26
1
Help with graphs in A4 size
...in pdf: library(plotrix) graphics.off() windows(width=8.27, height=11.69) plot(3:10, main="My title") ###########text(4, 11,"My title") axis.break() axis.break(2,2.9,style="zigzag") mtext("Texto adicional", side=1, line=2) text(4, 9,"Texto") dev.copy2pdf(file="Graph.pdf",height=11.69, width=8.27) shell.exec(file.path(getwd(), "Graph.pdf")) However, if I use text() to put "My title" (outside the plot region) it seems that dev.copy2pdf does not make the pdf correctly (it expands the plot and the text "My title&quo...
2009 Jan 28
2
Saving plot into file without showing it
...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) dev.copy2pdf() Until there fine, it create a pdf file that is composed of my plot...My "issues" are the following: 1. If I want to produce the plot & save it directly in a pdf file without viewing it, how do I do that? 2. Can I create several plots in a row (without showing them in Quartz or wh...
2013 Feb 13
4
Equivalente a paper="a4", pero en pantalla gráfica
Buenas tardes: Quería lograr el efecto "expansivo" que se consigue con la opción paper="a4" de la función pdf, pero sin volcar en pdf; es decir, yo quiero enviar mi gráfico (luego definiré sus propiedades) a la salida gráfica (RGui) de modo que quede con verticalidad, como en un A4, y luego el usuario final es libre de guardar en pdf o no, con el propio RGui. Ahora voy a
2012 May 10
0
Fwd: Re: need help in R
...'Longitude', limits = lon_range) + > scale_y_continuous('Latitude', limits = lat_range) + > scale_colour_discrete('') + > opts(title = 'Invitation map of Emzinini, 2012') + > coord_equal() > > this code brings an error says > Error in dev.copy2pdf(device = "x11", file = paste(mapdir, "EmzinoniGG.pdf", : > no device to print from > i am not sure what does the error mean > dev.copy2pdf(device="x11",file=paste(mapdir,"EmzinoniGG.pdf",sep="")) > dev.off() > -- > Leah Mathib...
2013 Jan 29
2
export figure by pdf command
Dear R mailing listers, After plotting, I wanna save it as file in pdf format using pdf("name.pdf") command. It failed, but I can do it by GUI operation (file-save as-pdf). e.g. x11() hist(x, breaks = 50, probability = FALSE) pdf("hist.pdf") [[alternative HTML version deleted]]
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", rep("Impact.afm", 4),...
2017 Jun 26
3
Model studies in one analysis using treatment as a five level moderator in a meta-regression
...,"Event_Type"] == "Complications"),] VPO_R <- VPO[which(VPO[,"Event_Type"] == "Reoperations"),] Output <- function(x, y, k.min=10){ file <- metaprop(Events_n, N, Study_ID, data = x) forest.meta(file, studlab = T, pooled.totals = T, bysort = F) dev.copy2pdf(file=y, width = 11.69, height = 8.27) print(file) } R code on my dropbox: https://www.dropbox.com/s/67pnfpi10qu110v/R%20code%20voor%20forrest%20en%20funnel%20plots.rtf?dl=0 [https://cfl.dropboxstatic.com/static/images/icons128/page_white_word.png]<https://www.dropbox.com/s/67pnfpi10qu110v/R%20...
2017 Jun 26
0
Model studies in one analysis using treatment as a five level moderator in a meta-regression
...plications"),] > VPO_R <- VPO[which(VPO[,"Event_Type"] == "Reoperations"),] > > Output <- function(x, y, k.min=10){ > file <- metaprop(Events_n, N, Study_ID, data = x) > > forest.meta(file, studlab = T, pooled.totals = T, bysort = F) > > dev.copy2pdf(file=y, width = 11.69, height = 8.27) > print(file) > } > > R code on my dropbox: > https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.com%2Fs%2F67pnfpi10qu110v%2FR%2520code%2520voor%2520forrest%2520en%2520funnel%2520plots.rtf%3Fdl%3D0&e=541e9c83&h=1df77562&f=y &...
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]]
2008 Sep 01
1
How remove the small outline around R plots in LaTeX?
Dear R List, I noticed something odd when I started saving R graphs in pdf format and including them in LaTeX documents using (e.g.) \includegraphics{mygraphic.pdf}. A very thin dotted border is included in the LaTeX document around the graphic, and I cannot seem to make it go away. I searched Google as well as the R list archives but could not find anything on this. Note that this
2015 Jul 04
0
Support for transparency in metafile export & support for export to Powerpoint
...sed DrawingML format using either export2ppt(file="plot.pptx") or export2doc(file="plot.docx") : see http://stackoverflow.com/questions/31212659/r-function-to-capture-r-plot-in-current-graphics-device-and-export-it-to-powerp/31221813#31221813 (analogous in syntax to function dev.copy2pdf in grDevices) The code of the function is: export2office = function(file = "plot", type="PPT", scaling = 90, aspectr=NULL, vector.graphic = TRUE, fontname = "Arial", pointsize=20) { file=sub("^(.*)[.].*", "\\1", file) if (type=="PPT"...
2017 Jun 26
1
Model studies in one analysis using treatment as a five level moderator in a meta-regression
...<- VPO[which(VPO[,"Event_Type"] == "Reoperations"),] >> >> Output <- function(x, y, k.min=10){ >> file <- metaprop(Events_n, N, Study_ID, data = x) >> >> forest.meta(file, studlab = T, pooled.totals = T, bysort = F) >> >> dev.copy2pdf(file=y, width = 11.69, height = 8.27) >> print(file) >> } >> >> R code on my dropbox: https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.com%2Fs%2F67pnfpi10qu110v%2FR%2520code%2520voor%2520forrest%2520en%2520funnel%2520plots.rtf%3Fdl%3D0&e=541e9c83&h=1df77562...
2013 Feb 20
0
Problems with line types in plots saved as PDF files
..."l", lwd = 2, lty = "dashed", col = "blue") lambda.hat = which.max(pen.like) lambda.glm = which(b == b.hat) points(b[lambda.glm], l[lambda.glm], pch = 16, cex = 1.5) points(b[lambda.hat], l[lambda.hat], pch = 17, cex = 1.5) abline(h = 0) abline(v = 0) #} #dev.off() dev.copy2pdf(file = "TestPlot_devcopy2pdf.pdf") as well as the pdf() and manual Save As sessionInfo() R version 2.15.2 (2012-10-26) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERI...
2008 Apr 29
2
Legend problem when exporting a plot to PDF
Hi list, When exporting to PDF a graph with a legend, in the final PDF, the text is going beyond the legend box. > dev2bitmap("test.pdf", type="pdfwrite", h=6, w=6) The legend looks OK on the screen. I noticed that the size of the legend box depends on the size of the screen window, which is not the case for other graphical parts (text of the legend, title, axis
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
I'm having a problem with dotted lines (lty = 3) in the pdf output in documents generated with Sweave. In the displayed pdf, the dotted line does not show up and in the printed output, it is there but does not seem to respect the lwd argument, for example, it is very faint despite using lwd = 3. The dotted line is correct in a quartz window and if I save the Quartz window to a pdf and
2008 Jul 22
2
saving plot both as jpg and pdf
Hi, I want to save a plot automatically as a pdf and jpg, and if I open the pdf device first and jpeg second only the jpeg file saves correctly ?. If I do reverse, only the pdf file saves correctly. pdf('E:/my_graphs/test1.pdf', bg = "white") jpeg('E:/my_graphs/test1.jpg', quality = 100, bg = "white", res = 200, width = 7, height = 7, units = "in")