Displaying 20 results from an estimated 7000 matches similar to: "png() and image()"
2007 Jul 31
2
Q: obtaining non-transparent background in png
I am not understanding something about generating PNG plots.
I have tried several ways to obtain something other than a transparent
background, but nothing I've done seems to change the background.
For example:
dev.print(png, width=800, height=600, bg='red', filename='example.png')
which I thought would give a red background, simply gives the same
transparent background I
2005 Jan 03
2
Memory problem ... Again
Happy new year to all;
A few days ago, I posted similar problem. At that time, I found out that our
R program had been 32-bit compiled, not 64-bit compiled. So the R program
has been re-installed in 64-bit and run the same job, reading in 150
Affymetrix U133A v2 CEL files and perform dChip processing. However, the
memory problem happened again. Since the amount of physical memory is 64GB,
I think
2013 Feb 14
1
fill colour in grid
Dear all r-users,
I have this code below to draw two squares, small and big square. I would like to colour the small square with red and the big square with blue for example. I tried using polygon but fail. Thank you so much for your help.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot.new()
plot.window(xlim= c(0,8),
2007 Feb 23
2
pdf with an exact size
Is it possible to create a pdf output file with an (as nearly as
possible) exact size?
For example, if I want to draw in an A4 paper (210 x 297 mm) a
square of 100 x 100 mm, how can I do it?
FWIW, about 6 months ago I learned here how to create an exact
png image. For example, if I want a 500 x 500 black square in
a 1000 x 1000 white png, occupying the center of the png, the
procedure is this:
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]
2010 Nov 22
2
xlim=c(min(x), max(x)) still produces extra margin on both sides of x axis in plot()
code:
op <-
par(bg='black',fg='gray',col='gray',col.axis='gray',col.lab='gray',col.main='gray',col.sub='gray',mai=c(0,0,0,0),
tck = 0.01, mgp = c(0, -1.4, 0), mar=c(0,0,0,0))
plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(1,1,1,
0.5),yaxt="n", ann=FALSE)
abline(v=c(min(x),max(x)), lty=3,
2000 Sep 14
2
Background color with jpeg and png devices
If I change the background color of a plot, with par(bg="red") for example, I
get a plot with a red background when I use the postscript or X11 devices.
With the png or jpeg devices, the background is white.
Is this the intended behavior, or a bug? Is there anyway to get a non-white
background with the png device? I'm using R-1.1.0 on Linux.
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 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)
2018 May 01
2
v2.3.1: Event leaked (parent=(nil)): http-client.c:137 and 439
Hi,
After upgrade to dovecot 2.3.1, many IMAP clients cause errors in
dovecot log:
May 01 20:15:51 tiger dovecot[21985]: imap: Warning: Event
0x555fd3c01630 leaked (parent=(nil)): http-client.c:137
May 01 20:15:51 tiger dovecot[21985]: imap: Warning: Event
0x555fd3c00140 leaked (parent=(nil)): http-client.c:439
Namely:
* roundcube 1.3.3
* offlineimap
* nextcloud mail app
Despite the errors,
2008 Dec 17
1
Shrink Trellis margins settings (when printed to png file)
Dear R-experts,
I have two problems:
PROBLEM (1)
-----------
I want to produce a very small png file (35 x 18 px) that contains a
histogram without a figure region or margins, only the pure heights.
In the base graphic system this is simple:
png(filename = "hist.png", res = 72, width=35, height=18)
par(mar=c(0,0,0,0), oma=c(0,0,0,0))
hist(rnorm(100),
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,
2011 Jul 25
1
Creating png of layered legend
I am trying to create a plot that has multiple plot characters for
each point (e.g. a point within a triangle, a triangle within a
square, etc). The workaround I have found to do this is by plotting
twice, as in this example:
x <- c(1.1, 2.3, 4.6)
y <- c(2.0, 1.6, 3.2)
plot(x, y)
points(x,y, pch=20, col="red", cex=0.5)
This works, but perhaps there is a better way to do it in one
2005 Oct 08
1
add leading 0s to %d from png() {was Automatic creation of file names}
Dear useRs,
Is there a way to 'properly' format %d when plotting more than one
page on png()? 'Properly' means to me with leading 0s, so that the
PNGs become easy to navigate in a file/image browser. Lacking a better
solution I ended up using the code below, but would much prefer
something like
png("test_%d.png",bg="white",width=1000,height=700)
where %d
2009 Mar 10
1
North Arrow (.png file) on a Map
Hi list.
I would like to know how do I insert a North arrow, stored as a png file in
my computer, in a map? I found lots of post asking similar things, one of
them mentioned the pixmap package. The map was done using map() and
shapefiles (the code is below). I’m using the pixmap () and addlogo()
functions. Well I can import the png with pixmap() function (I guess, once
there’s no error message),
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
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
2002 Jul 30
1
Problem with legend
Hi!
I have a problem using the legend command.
I typed as follows:
plot(foo bar...)
legend(0.6,10, c("True Positiv", "False Positive", "False Negative","True Negative"), col = c("black",2,3,4),lty=c(1,1,1,1),pch=c(0,0,0,0), merge = TRUE, bg='gray90')
The plot and its legend is displayed ok. The I apply a dev.cop2eps on it to save the
2019 Apr 02
4
sieve scripts not synching for 2.3.5.1 pre-built
On 2 Apr 2019, at 22.37, Timo Sirainen via dovecot <dovecot at dovecot.org> wrote:
>
> On 2 Apr 2019, at 17.03, Jan-Pieter Cornet via dovecot <dovecot at dovecot.org <mailto:dovecot at dovecot.org>> wrote:
>>
>> Hi,
>>
>> We're synching mailboxes, changing format from maildir to mdbox, using doveadm backup/doveadm sync.
>>
>> When
2010 Mar 29
1
stuck with affy / limma
Hi,
I have a question concerning the analysis of some affymetrix chips. I
downloaded some of the data from GEO GSE11324 (see below). In doing so I'm
stuck after I identified the probesets with significant changes. I have
problems in assigning probeset specific gene names as well as getting the
genomic coordinates. Furthermore I have no clue how to deal with the fact,
that most genes have