Displaying 20 results from an estimated 157 matches for "03d".
Did you mean:
03
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 page is saved as a...
2009 Jan 26
1
ups emerson liebert GTX2 ESP-II serial protocol demo
...rn(-1);
}
if( retval<=0 )
return(-1);
}
return(red);
}
/* Send a command and read a measurement */
unsigned int SendCmd_M(int fd, unsigned char *cmd, unsigned char *rbyteH, unsigned char *rbyteL)
{
unsigned char buf[8];
cmd[5]=cksum(cmd,5);
//printf("%03d,%03d,%03d,%03d,%03d,%03d\n",cmd[0],cmd[1],cmd[2],cmd[3],cmd[4],cmd[5]);
int res=timedwrite(fd,cmd,6,500);
if(res!=6){
fprintf(stderr,"port write error, cmd:");
fprintf(stderr,"%03d,%03d,%03d,%03d,%03d,%03d\n",cmd[0],cmd[1],cmd[2],cmd[3],cmd[4],cmd[5]);...
2011 Mar 08
1
Nesting random effects in lmer
...+ (1 + :
invalid type (S4) for variable 'MMGroom'
Here are a few lines of my data set (unfortunately, my table has 12 columns
and doesn't fit well):
Male MaleRank MaleAge MMGroom MMAggrRankControl Female FemaleRank FemaleAge
MFAggrMating GroomBirth07 MatNoConsortGroomF Consortship
03D 0.756097561 13.48 0 0 15O 0.663157895 8.413415469 0.109289617 0 0 0
03D 0.756097561 13.48 0 0 22S 0.926315789 6.491444216 0.109289617 0 0 0
03D 0.756097561 13.48 0 0 35B 0.442105263 15.36481862 0 0 0.218579235 0
03D 0.756097561 13.48 0 0 38E 0.98 12.35318275 0 0 0.43715847 0.218579235
13I 0.49 10.1...
2010 Aug 21
1
R-level expansion of Rplot%03d.png
...The resulting html file contains a thumbnail of the png file, with a
link to the pdf file.
I'm not happy with my default filename for the graphics. Is there a
way to expand the default filename of R graphic devices? I would like
to call it like this,
makePlot = function(p, name="Rplot%03d", width=300)
{
real.name = expandName(name) # function needed here
png(paste(name,".png",sep=""))
print(p)
dev.off()
pdf(paste(name,".pdf",sep=""))
print(p)
dev.off()
cat(noquote(paste('image:',real.name,'.png["',real.name,'&quo...
2010 Oct 22
1
Display list redraw incomplete when exporting plots
...k you for your time and help!
Jonas Josefsson
____________________________________________________________________
Messages, warnings, or errors:
Warning message:
Display list redraw incomplete
Messages, warnings, or errors:
Warning message:
In dev.copy(device = function (filename = "Rplot%03d.jpeg", width = 480, :
`mgp[1:3]' are of differing sign
Messages, warnings, or errors:
Error in dev.copy(device = function (filename = "Rplot%03d.jpeg", width =
480, :
could not open file '/home/jonas/Skrivbord/art/station.jpg'
Calls: local ... dev.print -> dev....
2009 Jul 15
2
ffmpeg2theora: issue converting from a png image list
...generated a list of PNG
images: img001.png, img002.png... img299.png
The ffmpeg2theora man page says:
Encode a series of images:
ffmpeg2theora frame%06d.png -o output.ogv
That's exactly what I tried with the latest 0.24 release of ffmpeg2theora:
ffmpeg2theora-0.24.linux32.bin img-%03d.png -o output.ogv
Input #0, image2, from 'img-%03d.png':
Duration: 00:00:12.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, yuv420p, 1280x720, 25 tbr, 25 tbn, 25 tbc
Resize: 1280x720
Segmentation fault
The same problem happens with the release in Ubuntu 9.04, and with th...
2016 Dec 20
2
colnames for data.frame could be greatly improved
...to `colnames`:
if (is.data.frame(x)) {
nm <- names(x)
if (do.NULL || !is.null(nm))
return(nm)
else
return(paste0(prefix, seq_along(x)))
}
Script and timings:
N=1e7; K=100
set.seed(1)
DF <- data.frame(
id1 = sample(sprintf("id%03d",1:K), N, TRUE), # large groups (char)
id2 = sample(sprintf("id%03d",1:K), N, TRUE), # large groups (char)
id3 = sample(sprintf("id%010d",1:(N/K)), N, TRUE), # small groups (char)
id4 = sample(K, N, TRUE), # large groups (int)...
2003 Sep 13
1
(no subject)
Dear all,
for an interactive web application i need to produce a lot of graphics (up
to 50) on demand.
In the moment i'm using the png format.
The png()
...using png(file="Rplot%03d.png", ...); 'plots' ; dev.off()...
produces very good graphics. The problem is it takes too long to produce the
png files.
The bitmap()
...using bitmap(file="Rplot%03d.png", type="type = "png256",...); 'plots';
dev.off()...
works really fast. But on my...
2006 Jun 08
1
Formatting numbers for printing
...ill be printing in a graphic. I
would like to format them as follows: 012-012, i.e., the first two
digits padded to the left by a zero, followed by a dash, followed by
the final three digits, also padded to the left by zeros.
I can do this with brute force:
FirstPart <- sprintf("%03d", floor(Number / 1000))
SecondPart <- sprintf("%03d", WhichID %% 1000)
Combined <- paste(FirstPart, "-", SecondPart, sep="")
But, I suspect that there is some more clever means to accomplish
this using formatC or sprintf. Unfortunately, the help pages...
2008 May 26
2
R 2.7.0: pdf() > pdf.options versus formals
Hi,
I have a tiny question about the graphics change in R 2.7.0.
If I write a script ? la:
options(device="pdf")
formals(pdf)[c("file","onefile","width","height")] <- list("~/Rplot
%03d.pdf", FALSE, 8, 8)
plot(3)
plot(4)
both plots will be written into ONE pdf file. (not two as expected)
This worked fine under 2.6.x
In R 2.7.0 I have to write:
options(device="pdf")
formals(pdf)[c("file","onefile","width","height")] <- li...
2013 Sep 27
3
Compare species presence and absence between sites
Dear List,
I want to compare the presence and absence of bird species based on the
sites in a matrix.
The matrix has 5 rows for Island A, B, C, D, and E.
It has 100 columns for bird species D001-D100.
In each cell of the matrix,
the presence-absence of bird species will be recorded as 1 or 0.
(For example, if species D001 is found on Island D,
the matrix cell of species D001 and Island D
2008 Feb 21
2
jpeg in batch mode
...around this somehow? I saw other people posted similar
problems, but saw no solutions.
R-2.6.0, GNU/Linux
Thanks,
Elizabeth
My caveat from above about the jpeg working as long as I'm signed on:
one time I got the mysterious error:
>
jpeg("~/batch5Effect/ProbPbsets_summaryHeatmaps%03d.jpeg",height=1200,width=800)
Error in jpeg("~/batch5Effect/ProbPbsets_summaryHeatmaps%03d.jpeg",
height = 1200, :
X11 fatal IO error: please save work and shut down R
Even though it had just correctly done this same basic command a few
lines back. I redid it (without changing...
2006 Feb 05
2
generating strings in a tricky order
Hi R users
I like to generate some strings (a character vector) in a special way like
If i have 5 variables
"002.001",
"003.001", "003.002",
"004.001", "004.002", "004.003",
"005.001", "005.002", "005.003", "005.004"
so the created string vector's elements are
"002.001",
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 = "c:/r/Rplot%03d.png", width = 1920, height = 1920, pointsize =
48, bg = "white", res = 2400)...
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, height, pointsize,
:
unable to start device PNG
Calls: png
In addition: Warning message:
In png(filename = "/tmp/test%03d.png"...
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, height, pointsize,
:
unable to start device PNG
Calls: png
In addition: Warning message:
In png(filename = "/tmp/test%03d.png"...
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)
2016 Dec 27
0
colnames for data.frame could be greatly improved
...;- names(x)
> if (do.NULL || !is.null(nm))
> return(nm)
> else
> return(paste0(prefix, seq_along(x)))
> }
>
> Script and timings:
>
> N=1e7; K=100
> set.seed(1)
> DF <- data.frame(
> id1 = sample(sprintf("id%03d",1:K), N, TRUE), # large groups (char)
> id2 = sample(sprintf("id%03d",1:K), N, TRUE), # large groups (char)
> id3 = sample(sprintf("id%010d",1:(N/K)), N, TRUE), # small groups (char)
> id4 = sample(K, N, TRUE), # larg...
2006 Feb 08
1
invalid graphics state using dev.print (fwd)
...hy I'm moving this to R-devel.
It's been several workdays now with no responses. Could
someone try the last three lines of code and see if they
get the following error message?
> x11()
> plot(rnorm(10))
> dev.print(png)
Error in dev.copy(device = function (filename = "Rplot%03d.png", width =
480, :
invalid graphics state
> traceback()
6: dev.copy(device = function (filename = "Rplot%03d.png", width = 480,
height = 480, pointsize = 12, gamma = 1, colortype =
getOption("X11colortype"),
maxcubesize = 256, bg = "white", f...
2009 Aug 11
1
Generating R plots via Ruby CGI
...Library/WebServer/Documents/gsa/test.R")
2. However, when I hit the submit button on the HTML page, I get the
following error messages on my Apache 2 server log:
[Tue Aug 11 01:22:41 2009] [error] [client ::1] Error in function
(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), :
[Tue Aug 11 01:22:41 2009] [error] [client ::1] unable to start
device pdf
[Tue Aug 11 01:22:41 2009] [error] [client ::1] Calls: plot ...
plot.default -> plot.new -> <Anonymous> -> .External
[Tue Aug 11 01:22:41 2009] [error] [client ::1] In addition: Warning...