Displaying 20 results from an estimated 10000 matches similar to: "Q: obtaining non-transparent background in png"
2005 Aug 15
1
png and resolution (PR#8066)
Full_Name: Knut krueger
Version: 2.1.1
OS: xp Home
Submission from: (NULL) (149.225.134.34)
In the png function the value res seems to be inactive:
bmp(filename = "c:/r/Rplot%03d.bmp", width = 1920, height = 1920, pointsize =
48, bg = "white", res = 2400)
result:
witdh/heigth = 1920 <> 20.32 mm
ppi=2400
Results as expected
png(filename =
2009 May 29
1
png() error in recent R-devel on Windows
Hi,
Tested with the latest r-devel snapshot build for Windows (2009-05-28 r48663):
> png("test.png")
Error in png("test.png") : invalid value of 'fillOddEven'
The png() function is defined like this:
> png
function (filename = "Rplot%03d.png", width = 480, height = 480,
units = "px", pointsize = 12, bg = "white", res = NA,
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 ),
2005 Jul 12
5
High resolution plots
Is there any possibility to get high resolution plots in a windows xp
system?
I tried it with the device function png(filename =
"c:/r/highresplot%d.png",pointsize=12, res=900)
but when I try to set: width = 480, height = 480 or pointsize = 12,
the text is not scaled in the same way as the plots.
with regards
Knut Krueger
http://www.biostatistic.de
2009 Aug 10
4
Saving plots to file
Appologies if this has been addressed before, but I can't seem to find it in
the help archives.
I'm looking to do something like the following but it looks like save.plot
is deprecated.
save.plot(plot(glm1$residuals,gain,main = "Hist of residuals and
gain"),file="Desktop/hist1.png")
Thanks in advance,
Sean
Session Info:
R version 2.9.1 (2009-06-26)
2006 Feb 08
1
invalid graphics state using dev.print (fwd)
On Mon, 6 Feb 2006 18:12, Simon Urbanek wrote:
> On Feb 6, 2006, at 5:24 PM, Paul Roebuck wrote:
>
>> Tried on R-Sig-Mac with no responses, but I need some kind
>> of answer.
>> [...]
>> Does the following work on your system?
>
> Interesting, no, it doesn't either. For png and pdf I use
> Quartz + quartz.save (it produces much nicer results) so
> I
2000 Jun 16
1
postscript device on R-1.1.0
Am I the only one with this problem?
> postscript()
Error in old$command == "default" : comparison (1) is possible only for
vector types
The function postscript() is creates a list called "old". the function
wants to access old$command, but old does not have a component called
command.
> postscript
function (file = ifelse(onefile, "Rplots.ps",
2008 Apr 18
5
vector in filename
Hi,
I am trying to generate a group of graphics with an iteration. Some
thing like this...
x=1
y=1
max=10
myfiles <- paste("foo", x:max, ".png", sep="")
while (x =< max)
{
png(file=myfiles, pointsize = 20, width = 600, height = 600,
units = "px", bg="#eaedd5")
plot(x,y)
dev.off()
x=x+1
y=y+1
2003 Mar 10
2
graphics backgrounds from gray to white in png()
Hi,
I'm trying to make a png file of a histogram. I would like a white
background in the final product but end up producing a gray one, despite
setting what I think are the correct parameters. Suggestions for how to
properly set a white background would be welcome.
Thanks in advance,
Scot
# for non-lattice
> par("bg"="white")
> par("bg")
[1]
2005 Jul 23
1
"%03d" in the pdf command
The pdf man page contains the following text:
pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),
width = 6, height = 6, onefile = TRUE, family = "Helvetica",
title = "R Graphics Output", fonts = NULL, version = "1.1",
paper, encoding, bg, fg, pointsize)
I am creating multi-page graphics in which each
2003 May 06
5
xyplot (lattice), strip.default
Dear r-help,
I've got data of the following structure
1979 93.428747 0
1979 87.298608 20
1979 78.506340 40
...
1979 45.567890 340
1980 60.815289 0
1980 49.630904 20
1980 24.981362 40
...
The first column is year and the last one is the longitude.
I need a set of graphs showing the dependence of the middle value on
the longitude, for each year, situated one blow the other.
2009 Sep 22
3
R PNG graph width limitation
Hi folks,
I am trying to do a clustering and generate a long dendrogram in R on Linux
server:
=========
data<-read.table(file="mean_ratio.txt.noheader",row.names=1,sep="\t",quote="\"")
hc<-hclust(dist(data),"ward")
png(file="mean_ratio.txt.noheader.ward.png",bg="white",pointsize=8,width=32767,height=1536)
plot(hc,hang=-1)
2011 Nov 05
1
How to infer default width and height for a device?
Hi.
GENERAL:
Is there a general method for inferring default device settings,
particularly 'width' and 'height', that works for all devices? AFAIK,
the answer is no, but there might be functions out there that I don't
know of.
POSTSCRIPT SPECIFIC:
If not, I'm considering implementing such a method myself. Is it
possible for R to infer the default 'width' and
2008 Jun 04
1
An issue happens Embed R and redirt png file
I am a new R user and I have a question of embedding R to generate png
On Debian, I installed R by source code.
Now I want to embed R in an application which name is MyApp, and run
the following syntax:
png(filename="/tmp/Rplot%03d.png)
example(rect)
dev.off()
Unfortunately I get the following error message:
Error in X11(paste("png::", filename, sep = ""), width,
2008 Jun 04
1
An issue happens Embed R and redirt png file
I am a new R user and I have a question of embedding R to generate png
On Debian, I installed R by source code.
Now I want to embed R in an application which name is MyApp, and run
the following syntax:
png(filename="/tmp/Rplot%03d.png)
example(rect)
dev.off()
Unfortunately I get the following error message:
Error in X11(paste("png::", filename, sep = ""), width,
2000 Aug 10
1
Usage questions
Can I ask a couple of usage questions? (RedHat Linux 6.1, R-1.1)
1. This may just indicate I'm a dinosaur who can't leave SAS behind. I
want to write programs and run them with source() to see what they do,
then I would like to use the "up arrow" to go back through the commands
that were in the file, fiddle them, see what they do, and so forth. Is
there no way? SAS has a
2008 Sep 18
1
PNG file don't run on mac's?
Een ingesloten tekst met niet-gespecificeerde tekenset is gescrubt ...
Naam: niet beschikbaar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080918/ed87aa31/attachment.pl>
2012 Mar 14
3
Export a plot/figure to excel or word?
Hi all,
I have created forest plots using the package "meta" that I submitted as pdf for publication. I just received an email from the editor asking me if I could send these files in an Excel or MS Word format such that they can treat them as tables with box plots.
I am not sure if I can do this... Is this possible? I've tried the capture.output command, but I get a blank MS Word
2008 Oct 15
1
trouble with combining png and pdf
L.S.,
I would like to add a downsized image to a pdf file and got stuck on the
code to use.
My goal is to open a pdf device, add a plot, add the downsized image, and
then close the pdf device.
Making the downsized image is easy using png(),
png(file="x.png", width = 600, height = 600, units="px", pointsize=12)
image(very large image)
dev.off()
making a pdf
2012 Nov 01
3
Duda gráfico DIN A-4
Hola,
¿Alguien me puede indicar cómo conseguir que un gráfico se adapte al formato DIN-A4, con su correspondiente verticalidad?. ¿Hay que hacerlo "manualmente" o existe algún parámetro/función que lo controle?.
Gracias.
Eva
[[alternative HTML version deleted]]