similar to: Printing to jpeg (dev.print)

Displaying 20 results from an estimated 20000 matches similar to: "Printing to jpeg (dev.print)"

2004 May 27
2
Is it possible to read jpeg files into R?
Hi Helpers, Does anyone know how to read jpeg, bmp or png files into R? I have some photos of brain scans and I want to quantify some aspects of their size. I might be able to do this with the 'locator' function, if I could figure out how to read the files in and make them into an image that I can display on the R Windows device. I have experimented with readBin, using a simple
2009 Mar 03
1
dotplot() lattice charts return blank image (jpeg, bmp, png) file
Thanks in advance for the help. Trying to run a basic dotplot in lattice from R command line. When the file is created, in Fedora, it is blank image (jpeg, bmp, png). Image produces correctly in Windows environment. Libraries lattice and latticeExtra are loaded. Code: ----------------- jpeg(file = "/tmp/img/temp31.jpg", width = 768, height=768) xy <- dotplot(1:10) print(xy)
2002 Aug 20
1
Jpeg files dynamically but multiple figures (e.g xyplot (grid/lattice))...
Dear List, Some days ago, it was posted in this list a question regarding "How to generate graphics (jpeg) files dynamically". Although it was responded, there is a particular case in which I do not find the rigth solution. My question also goes in the same direction but for the particular case of generating jpeg/bmp or png files when using xyplot (grid/lattice libraries) and the
2005 May 13
1
DEV2bitmap: jpeg with res=400 not enough for CORELDRAW poster A0
Dear all, When saving a plot with the dev2bitmap command: name <- c("test.jpeg") dev2bitmap(name,type="jpeg",height=8,width=13,res=400) Everything seems to be ok... After importing this picture in CORELDRAW (for a poster A0) format the resolution and colors are not optimal. How can I save pictures (colors/resolution) optimally for import into CorelDraw for an
2004 May 27
2
no transparent background in bmp
I've been attempting to export a graphics file of my lattice plots and no matter what color I use for the bg= argument in the bmp/jpeg/png function, the background is grey. bmp(filename = "c:/my_paper/resids.bmp", width=1024, height=1024, pointsize=10, bg="transparent") # these are lattice plots. plot them in a 3x2 matrix print( hgqqplot, position=c(0.0, 0.66, 0.5, 1.0 ),
2002 Jan 29
3
lattice dotplot and graphic devices on Windows
I am using R1.4.0 on WindowsNT (the precompiled version from Brian Ripley's website) and the lattice package (version details are at the end of this message). After producing a lattice dotplot, I want to insert the graph into a MicrosoftWord document. With "ordinary" R-graphics, I have done this successfully by copying the graph as a metafile to the clipboard and pasting this into my
2008 Feb 03
3
Drawing a loess line
Dear all, To draw a lowess line on a plot was a piece of cake; to draw a loess line, however, seems not that easy. Is the loess plotting implemented at all in relation to the loess function, or do I have to look in add-on packages? Thanks, Marcin
2009 Oct 05
2
Loop function/comparison operator problem
Hi There, I have created the following function format<- function(){ repeat { form<-readline(paste("\nIn what format do you want to save these plots?\nChoose from: wmf, emf, png, jpg, jpeg, bmp, tif, tiff, ps, eps, or pdf.\nNote: eps is the suggested format for publication quality plots.\nPlot format --> ")); cat("\nI'm sorry, I don't know what that format
2004 Dec 30
2
coplot with png: disappearing grid lines
Dear useRs, When I use coplot() and output to png/jpeg/bmp, the grid lines from the scatter plots disappear. If I output to pdf() the grid lines are there, however I can't use it - I have many points, and the resulting PDF file is large and very slow to open and scroll through. (By the way, if I click File-Save As-png/jpeg/bmp from Rgui.exe, the grid lines are preserved - but I need to use
2007 Dec 06
3
Vertical text in a plot
Hi, Consider this simple plot: > plot(1:25,runif(25,0,1),ylab="First Y-axis label",xaxt="n") I want to add an additional axis as > axis(4,at=seq(0.2,1,.2), labels=1:5) I have no idea how to add now the title of the new axis as "Second Y-axis label". I want this text to be vertically directed from bottom to top. I can't find the function in text() to write
2008 Feb 15
2
Controling width of boxes in boxplots
Hi, I want to add boxplots to a scatterplot: plot(x,y, xlim=c(80,120),ylim=c(80,120)) boxplot(y,add=TRUE,at=118) boxplot(x,add=TRUE,at=118,horizontal=TRUE) How can I control the width of the boxes (say, I'd like them to be of width 3 in the variables' scales). I've tried the "width" parameter but failed. Thanks in advance, Marcin
2004 Aug 16
2
(no subject)
Hi there I teach a statistics class with R ( the first time ever with R) and some of my students have windows at home and they want to be able to graphs tjhey make in our college ( that only has Linux) and oopen with windows, I think the best wya would be saving it as a JPEG file but I don't know how to do it ! I only know how to do it with EPS dev.copy2eps(file="bla.eps") how
2003 Apr 14
6
Charts to M$Word - what's the best format
Hi I'm exporting some graphs from R to M$Word. I used png, jpeg and bmp and the quality is poor when comparing with the postscript. What is the best way to export a chart to be included in a M$Word file ? Thanks EJ
2003 Sep 10
6
insert eps into microsft word
it seems that word can not read encapsupalted postscripts generated by R I used this command postscript("output.eps",horizontal=F,onefile=TRUE) since onefile=TRUE produces an encapsualted postscript actually what I'm trying to do is to insert the postsript file into a word document since other formats like jpeg and bmp do not reproduce the same quality like postscript formats any
2011 Apr 13
1
print to .jpeg
Evening folks, I'm trying to print a series of graphs to .jpeg using a variable as the title, but run into the difficultly that I can't find a way to append the file extension to the .jpeg (in this case extensionless!) files. Example: ---- species.name="CussoniaHolstii" dia<-10:100 biomass = -21.4863 + 0.5797 * (dia ^ 2) biomass jpeg(species.name) plot (biomass,
2005 Feb 08
1
Windows BMPs: Why grey background? How to display BMP in R?
"white" is supposed to be the default background for BMPs (according to ?bmp) but it doesn't work > bmp("test.bmp", bg="white") > plot(0) > dev.off() # results in grey background # This seems to be a good enough workaround for now. > bmp("test.bmp") > par(bg="white") > plot(0) > dev.off() # background is white
2011 Sep 05
1
capturing a figure to PDF or Image
Hello, I've been using jpeg(), bmp() and pdf() to capture plots. I've used the parameter "at" in a plot, to define the tickmarks. It works fine on screen, but when I try to print it to a file, it gives a warning: "at" is not a graphical parameter and prints an empty figure. Can you help? Thanks, Eran. [[alternative HTML version deleted]]
2009 Apr 09
1
reading an image and adding a legend
Hi all, I would like to 1. Read in an arcmap image into R (I can export pretty much any type of image jpeg, bitmap etc from arcmap) 2. Use R to create a nice colour legend in the plot First of all, Is this possible? So far I'm stuck on point 1. I have tried read.pnm() from pixmap and read.jpeg() from rgl. the pnm example provided works fine x <-
2000 Jul 18
5
X11 & dev2bitmap
Hi, I am trying to put some graphics I have generated from R on a webpage using dev2bitmap to create a bitmap, .BMP, file. When I look at my notes from 2 or 3 months ago I was successfully able to put the ACTIVE device plot result into a bitmap file using a command such as: dev2bitmap("InsectSpray.BMP") Job done! Now when I try the same command, I get the following: >
2009 Aug 01
3
Transparency and trellis device
Dear R-users, I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated: Thank you Sebastien #### library(lattice) df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4)) settings <- standard.theme()