Displaying 20 results from an estimated 9000 matches similar to: "png()/jpeg()"
2003 Feb 21
1
more mulitpage postscript problems
Hi,
I posted a while ago about 'overlap' problems using png/jpeg. If what
Patrick Connolly suggests is truly happening, I think the following may be
related.
My new problem is with the following code (the overlap is still there if I
use png() instead of postscript(), compounded by the difficulty described
below):
tmp <- matrix(runif(16000), nrow=16)
2003 Feb 28
1
axis annotation
Hi,
Is there a way to specify a vector of colors for the tick annotation in a
call to axis(), to achieve the x-axis here?
<<Rplot003.png>>
Thanks,
Mark Wilkinson
Informatics Analyst
St. Jude Children's Research Hospital
Department of Pharmaceutical Sciences
The opinions expressed here are my own and do not necessarily represent
those of St. Jude Children's Research
2003 Feb 13
2
legend
I think I'm missing something tonight in the usage of 'legend':
plot(0, type="n")
legend(locator(1), month.abb[1:5], pch=15, col=1:5)
gives me something similar to what I want. But
legend(locator(1), month.abb[1:5], fill=T, col=1:5)
gives me 5 black boxes.
What am I doing wrong?
Thank you,
> version
_
platform i686-pc-linux-gnu
arch i686
os
2002 Dec 05
1
Passing options as lists
Hi,
I apologize if this has previously been posted. I've just subscribed to the
R-help digest.
I'm writing a plotting function that uses layout() to plot several different
plots on the same device. This function uses plot(), image(), and a custom
function that uses text(). Each cell of the layout needs different par()
parameters, so what I'd like to do is pass them as lists:
2003 Mar 12
3
png plots
I saw in the archive a post from Mark Wilkinson (Feb 1, 2003), saying
that some of his R-generated png plots came out overlapping.
I am seeing the same thing (with R 1.6.2 on Linux i686). My input
file generated 4 plot files. The first two were fine, but the last 2
featured a weird overlay of the remaining graphs. The problem is not
seen with postscript of pdf output.
--
Allin Cottrell
2003 Nov 26
5
multiple peaks in data frame
Hello, it wanted to know how I can extract of a dates frame the values
peaks according to an interval that I
establish. For example if dates are:
1 23
2 4
3 56
4 7
5 99
6 33
extract the date i wanted to divide into intervals of 2 an
d to take alone the numbers 23, 56 and 99 of those 3 intervals. Thanks
Ruben
2002 Dec 20
1
lower triangle
Hi,
I want to compute the lower triangle of a square matrix (optionally, sans
diagonal). With for() loops I can do something like this:
## 5 by 5 matrix rtn
for (j in 1:5) {
for (k in 1:j) {
if (j != k) { ## optional
rtn[j, k] <- my.func(j, k)
}
}
}
I'd like to do this with apply(). Is there some way I can do this kind of
'short-circuit'?
Thanks,
Mark Wilkinson
2005 Jun 03
2
reading tables into R
I have been using R and Perl. When I read in a text file using the read.table option, and I try to mathematically manipulate the individual elements in the table, I keep getting an "object is not subsettable" error. If I try to use a different method, it works, but takes too much time(basically, I then need to read in values individually into R instead of as a 2D array, so the number of
2005 Jul 21
1
principal component analysis in affy
Hi,
I have been using the prcomp function to perform PCA on my example microarray data, (stored in metric text files) which looks like this:
1a 1b 1c 1d 1e 1f ...................................................4r 4s 4t
g1 1.2705 1.2766 ...........................................................2.0298
g2 0.1631
2006 Jul 21
6
tdb/tdbutil.c:tdb_chainlock_with_timeout_internal
Hello. I run samba 3.0.21c on RHEL AS 4 EMT_64 U3 and I've experienced a
strange problem where smbd will go (and stay) in the D state. While
waiting for IO (possibly), these smbd processes do not respond to client
requests, thus samba appears to be down. I could not kill these
processes via kill -9 , so I rebooted which worked.
The only error I could see out of the ordinary would be
2002 Dec 17
4
Quick tip please!
I have two CSV files (exported from Excel), say file1 and file2.
The have the same number of rows, and each has several columns,
with names on the first line; and some of the columns in file1
are repeated in file2.
Using the "foreign" package, I can read these in separately
to dataframes say d1 and d2 with
> d1<-read.csv("file1")
>
2005 Jun 14
1
t.test using RSPerl
Hi,
I've just started using R and RSPerl. I have some code as follows:
&R::initR("--no-save");
&R::call("t.test", (\@array1, \@array2));
where @array1 and @array2 are both 1-dimensional arrays in Perl having 54675 elements each. On execution the output is as follows:
Calling R function name `t.test', # arguments: 3
1) Arg type 3
Got a reference to a
2008 Feb 19
1
Bug using X11 on mac osx (for jpeg or png creation) (PR#10800)
Full_Name: Stephane Bonneaud
Version: 2.6.2
OS: OSX - Leopard 10.5.2
Submission from: (NULL) (195.221.233.130)
Hello,
I have a R code file containing the following code:
-------
# This code is in r2jpg.r
# myData is filled here with some data from a file
jpeg(filename="test.jpg",width=960,height=720,pointsize=16,quality=100)
plot(myData,xlab="anything",
2014 Dec 05
0
R CUDA package developer position at St Jude Children's Research Hospital
Here is the website link:
https://jobs.stjude.org/css_external/CSSPage_JobDetail.ASP?T=20141205131210&
The position is particularly responsible for GPU (CUDA) programming to
translate statistical algorithms into R CUDA package, as well as the
maintenance of the R CUDA packages. The position calls for willingness to
learn and adapt new methods and technologies for parallel and distributed
2009 Jun 17
1
Unable to use jpeg(), png() etc.....
Hello,
I 've just re-installed R 2.9.0 on ubuntu 9.04.
I do not understand why I am unable to use simple device function such as jpeg(), png()...
> png()
Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, :
unable to start device PNG
In addition: Warning message:
In png() : no png support in this version of R
> capabilities()
jpeg
2010 Jun 23
2
format: different S4 behavior in a package
R-Devel-ers:
I have an S4 method that simply formats an object:
setGeneric("formatMe", function(x) standardGeneric("formatMe"))
setMethod("formatMe", "ANY", function(x) format(x))
If I issue the above in an R session, then define an S4 class with its own
format method, I get the desired result:
> setClass("A",contains="numeric")
2004 Aug 10
1
Error message in function mars() in package mda
Hi,
I am using function mars() in package mda to find knots in a whole bunch
of predictor variables. I hope to be able to replicate all or some of
the basis functions that the MARS software from Salford Systems creates.
When I ran mars() on a small dataset, I was able to get the knots.
However, when I tried running mars() on a larger dataset (145 predictor
variables), for a different
2009 May 31
1
warning message when running quantile regression
Hi All,
I am running quantile regression in a "for loop" starting with 1
variable and adding a variable at a time reaching a maximum of 20
variables.
I get the following warning messages after my "for" loop runs. Should I
be concerned about these messages? I am building predictive models and
am not interested in inference.
Warning messages:
1: In
2004 Sep 30
2
pointsize in png graphics
Dear all,
I'm trying to produce 2 png files, one consisting of an image plot and a
color-table (also an image plot) and the other one consisting of 4 image
plots and a color table. I'd like the color table to be exactly the same.
The way I proceded is the following:
for one plot and the color-table
png(file = png.file, width = 650, height = 800, pointsize = 16)
layout(matrix(c(1, 2),
2006 Nov 22
3
saving graphics in jpeg format
Dear R users,
I need to save a graph in jpeg format. After plotting the graph,
when the graphics window is active, in the File menu, the
Save as / Jpeg / 100% quality correctly saves the graph in jpeg format.
But I would like to know, how could I control the resolution (in dpi)
of the saved jpeg file? I need to produce a jpeg at 1200 dpi.
I have tried also the jpeg function in the package