Displaying 20 results from an estimated 3000 matches similar to: "Issues getting R to write image files"
2008 Oct 27
1
replace a few strings in a text file
Dear all,
I wrote a wrapper to a FORTRAN program using R. The main program uses
a text file (~200 lines) as an input describing the simulation to be
run. I typically generate the file once with the right parameters
using a combination of file(), paste(), cat(). This is fine, and it
works well, however I then need to update only a few values in the
file many times (~200 times,
2013 Feb 14
1
pcl to pdf
Everyone,
I am currently using a vsifax program (pcltotiff) to convert pcl files
to tiff files on a SCO Unix box, and then I am using tiff2pdf on a
Centos 5.9 box to convert the file to a pdf.
There are other commands that deal with multiple page tiff's and pdf's
that are part of the process, but the above basic process has worked
very well. The only thing I would like to enhance is a
2009 May 15
2
Using column length in plot gives error
Hi
I'm trying to write a generic script for processing some data which finishes
off with some plots. Given Im never sure how many columns will be in my
dataframe I wanted to using the following
plot(spectra.wavelength, cormat, type = "l", ylim=c(-1,1), xlab="Wavelength
(nm)", ylab="Correlation")
however even if I specify as type="l" it appears plot
2009 Oct 27
4
automatically adjusting axis limits
Dear R users,
I am a newbie. Just switched from MATLAB. So thanks a lot for your
patience.
I have 50000 spectra collected in field. Each spectra has two columns :
Wavelength (56) and the actual measurement.
Each measurement came in a different .txt file on disk (50000 files in
total). I wrote a script that reads every spectra in a for loop and
constructs two variables :
Wavelength (56) and
2009 Sep 30
1
Arial for pdf() on a Mac
Hi,
I'd like to use Arial for the font in the PDF's and TIFF's I produce
in R on my Mac (running 10.5.5). I've found the following archived
help file on how to do it in Linux (http://tolstoy.newcastle.edu.au/R/e4/help/08/08/19847.html
) but don't understand how to do this on my system. Are *.afm files
freely available and do they come with the *.enc file that
2010 Apr 26
5
How to make legend with line+ character
Dear all,
I have a multiline plot with each line labeled with a different letter.
But I'm not able to make the legend display the same kind of pattern
'-a-', instead the letter is overwritten by the line. A simpler legend
with only the letter is not very visible and the pt.bg does nothing with
letters. Any idea?
plot(1:10,10:1,lty=1,type='b', lwd=2,pch='a')
2010 Apr 18
2
Table or file as STDIN to the R Script
Hi all,
I am trying to call the R script/ R Program via my Shell Script. I need to
pass a file to the R script as an argument. When I am trying to do that I am
getting error and only first line of the file is being read. Can you tell me
how should I do that so that it reads the entire file in a R object so that
later I am able to process the matrix operation on that file. It is a tab
delimited
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
Switch the lex/yacc parser into reentrant mode, to ease the handling of
parsing-specific data; introduce a new parser_context struct for that,
which is added as extra data to the parser.
This should cause no behaviour changes in the parsing, just no more
global variables used for getting data in/out the parser.
---
builder/index-parse.y | 44 ++++++++++++++++++++++++++++++++++++------
2002 Nov 22
4
Use of variables to reference to objects
Hi,
I'm new to R and looking for a way to use a variable to reference to an
object.
I'm plotting several graphs on top of each other and want to do this by
a for loop. The field I want to graph have names like a1,a2,a3, ...
I can't figure out how to get this working:
It should look like this:
lines(spectral$Wavelength,paste("spectral$a",j,sep=""),col=j)
but
2012 Apr 24
1
Nested longitudinal data
Hi,
I have some difficulty in figuring out whether I am doing correct or not.
A brief introduction about the work: It is a light/dark choice test
conducted in insect larvae. The response is binary (0- present in dark
area, 1-present in light area) and the experiment is run for 15 min, so
there are 15 repeated measurements per individual larva at 1 min
intervals. The factors which affect
2009 Dec 10
1
incorrect multiple outputs
HI,
I'm having trouble with a piece of Rscript which keeps outputting
incorrectly. it's something like this: the code reads in from a file which
contains (reformated) input
>file<-read.table(file="input_file.txt",sep="\t")[,c(1,3:5)]
>
>file.rows<- c(nrow(file)/288) # "input_file.txt" contains 288 reformatted
lines for each original data file
2012 Jan 20
1
Calling Windows DLL using .C; function name not known but in exports.
First time ever that I try to call subroutines in a Win DLL using R.
Have done this before using VBA and Python.
The C code's function argument list contains only double pointers
(double *x). The function is declared void, the output value is one of
the arguments.
C calling sequence is used.
When inspecting the exports of the DLL with dumpbin I can see that the
function I need is
2004 Sep 23
2
viewing fax tiffs?
Hello,
I have spandsp setup to accept incoming faxes and receiving tif files
via Email.
Using tiff2pdf, or tiff2ps -a2 or even tiffsplit, the last page of the
fax is cut off and the quality of the text looks "squished".
I "figure" it's a tiff parsing thing, as opposed to a problem with my
spandsp installation (heh).
Has anyone experienced the same thing, or can
2005 May 13
1
Re: SpanDSP TXFax and multipage faxes problems
Hi !
Does anyone managed to send multipage faxes (in single TIFF file) with
app_txfax from spandsp package (i'm using 0.0.2pre18, libtiff 3.7.1)?
If so, I'm interested in format of TIFF file that has been sent sent
succesfully (tiffinfo <fax-filename>).
I'm having problems with app_txfax, sending first page successfuly 99 % of
the time, but never managed to send second or
2009 Aug 20
3
[PATCH ovirt-node-image] fixes for edit-livecd
Patch set fixes issues with image size increase when using edit-livecd
Also address issue with ext4 root fs
2010 Sep 16
4
help me understand how things work.
Hello I have some strange output from R and I try to understand how R works.
Could you please help me with that?
temp <- rbind (c(10,1),c(99,98))
> temp
[,1] [,2]
[1,] 10 1
[2,] 99 98
> dist(temp)
1
2 131.6435
> sqrt(dist(temp))
1
2 11.47360
so far so good.
until the nex line: when I try to do what i did before but adding the 1/(what I
did
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
---
builder/index-parse.y | 6 ++++--
builder/index-parser-c.c | 3 ++-
builder/index-struct.h | 1 +
builder/ini_reader.ml | 6 +++---
builder/ini_reader.mli | 2 +-
5 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/builder/index-parse.y b/builder/index-parse.y
index 310870d..7ddef53 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -150,12 +150,14 @@
2010 Oct 12
2
repeatability/intraclass with nested levels
I have a spectrophotometric dataset with repeated measures of a value
at 200 wavelengths for each of 150 individuals.
I would like to use the repeated samples to at each wavelength to look
at measurement/observer error, compared to difference between
individuals error
I have looked at doing this with icc{irr} or using an anova approach,
but I am unclear how to acheive this given that there
2010 Feb 04
3
strange behaviour of median
During some experimentation in preparing R lessons I encountered this
behaviour which I can not explain fully
mat <- matrix(1:16, 4,4)
df1 <- data.frame(mat)
> mean(df1)
X1 X2 X3 X4
2.5 6.5 10.5 14.5
Expected, documented
> median(df1)
[1] 6.5 10.5
Rather weird, AFAIK there shall not be an issue with data frame at least I
did not find any in help page. I tracked it
2011 Mar 16
2
Removing Bad Data
I created a couple of timeSeries objects - when I was merging them , I got an
error.
Looking at the data , I see that one of the time series has
06/30/2007 0.0028 0.0183 0.0122 0.0042 0.0095 -
07/31/2007 -0.0111 0.0255 0.0096 -0.0069 -0.0024 0.0043
08/31/2007 -0.0108 -0.0237 -0.0062 -0.0138 -0.0173 -0.0065
09/30/2007