Displaying 20 results from an estimated 3000 matches similar to: "Image display in R"
2005 Oct 21
1
locator
I'm trying to use the locator function on a drawing area with multiple
graphs par(mfrow=c(1,2))
Is it possible to identify which graph has been clicked?
thanks
tom
2006 Feb 22
4
heatmap.2 in gplots package
Hello all,
I am using the heatmap.2 function in the gplots package. I want to supress the reordering of the columns of the data matrix i pass to the function. I used the statement,
heatmap.2(z,Colv=FALSE,dendrogram="row",col=redgreen(75))
where z, is the matrix of data. The output i want should have the rows reordered along with the dendrogram and the columns should be in the original
2005 Nov 17
2
[Rd] Scan data from a .txt file
[Re-directing to R-help, as this is more appropriate there.]
I tried copying the snippet of data into the windows clipboard and tried it:
> dat <- read.table("clipboard", header=T)
> dat
Name Weight Height Gender
1 Anne 150 65 F
2 Rob 160 68 M
3 George 180 65 M
4 Greg 205 69 M
> str(dat)
`data.frame': 4 obs.
2005 Dec 01
1
Row wise function call.
I have another issue.i have a function which calculates the log2(col i
/col2) value, where i stands for columns 3,4,...etc.
data<-read.table("table.txt", header=TRUE)
iratio<-function(x){
for(n in 3:ncol(data)){
z<-log2(data[x,n]/data[x,2])
}
}
Where x- the row number of the data frame(data).
i want to store the ratios for each row in a object z, which can be
accessed
2005 Oct 17
1
Display a plot in an applet.
Hello,
I am trying to display a plot produced in R as part of an Applet. Stating
more clearly, i want to display a scatter plot(X axis data:1,2,4,5 and
Y-axis data:4,6,5, 7)produced in R as an Applet. How can this be done?
Please let me know.
Thanks,
Vasu.
[[alternative HTML version deleted]]
2005 Nov 25
1
read.table without sep
Hello all,
I have a data file table.txt which i have attached. I am trying to pass the
columns as arguments to a function "totnorm" where i am displaying a total
normalization plot. The function is given below:
totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x[[1]];y1<-scale*y[[1]];plot(x1,y1,xlab=xlab,ylab=ylab,col=6,
col.lab=4);}
2005 Nov 25
1
read.table without sep
Hello all,
I have a data file table.txt which i have attached. I am trying to pass the
columns as arguments to a function "totnorm" where i am displaying a total
normalization plot. The function is given below:
totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x[[1]];y1<-scale*y[[1]];plot(x1,y1,xlab=xlab,ylab=ylab,col=6,
col.lab=4);}
2005 Dec 01
1
Transfer String Array from R to java
I have a data frame which has the following data.
data<-read.table("table.txt",header=TRUE)
data
X14A_U133A_StatPairs X14A_U133A_Detection X14B_U133A_Signal
1 AFFX-BioB-5_at 403.0 409.3
2 AFFX-BioB-M_at 757.3 574.4
3 AFFX-BioB-3_at 284.4 327.3
4 AFFX-BioC-5_at
2005 Nov 16
3
yay for zfs
This zfs looks great!
I really hope this gets put into solaris soon since I don''t think I could live with Solaris express on a production machine.
The easy of adding disk and moving directories looks like a life saver, especially for me who deals with trying to store digital media which piles up a couple of gig a day!
This message posted from opensolaris.org
2012 May 25
1
Filling NA with cumprod?
Hello,
I need to build certain interpolation logic using R. Unfortunately, I just
started using R, and I'm not familiar with lots of advanced or just
convenient features of the language to make this simpler. So I struggled
for few days and pretty much reduced the whole exercise to the following
problem, which I cannot resolve:
Assume we have a vector of some values with NA:
a <- c(1,
2006 Apr 25
4
Help needed
Hi,
I am trying to change a SAS macro to R.
here is my code. I get an error at the last line.
attach(fram)
dset1<-cbind(AGE,BMI,DEATH)
> BMIGRP<-cut(BMI,breaks=3,right=TRUE)
> AGEGRP<-floor(AGE/10)-2
> dset<-cbind(AGEGRP,BMIGRP,DEATH)
> maxage<-max(dset[,1])
> minage<-min(dset[,1])
> #maxcls<-dset[,2]
> #mincls<-dset[,2]
>
2005 Oct 05
2
R and Java
I am a grad student and am working on a project where i need to integrate
java and R. I have a front end in java and i need to call R functions and be
able to dispaly the plots and graphs produced by R on my java front end. I
came across some tools like SJava and rserve...but am not sure which best
suits my application. Your suggestion will be really helpful.
Thanks,
vasu.
[[alternative HTML
2005 Nov 17
1
Scan data from a .txt file
Hi all,
Am trying to read data from a .txt file in such a way that i can access the
column names too. For example, the data in the table.txt file is as below:
Name Weight Height Gender
Anne 150 65 F
Rob 160 68 M
George 180 65 M
Greg 205 69 M
i used the following commands:
data<-scan("table.txt",list("",0,0,0),sep="")
a<-data[[1]]
b<-data[[2]]
2006 Jul 29
9
export to a CSV or XLS file
hello everyone,
Any idea how can i export a resultset from a database to a CSV or XLS
file from the application ? would like the user to have the option to
export selected data to a CSV/XLS file.
Any plugins or libraries avaiable to accomplish this ?
Thanks for your time,
VASU.
--
Posted via http://www.ruby-forum.com/.
2013 Mar 01
7
Conditional Weighted Average (ddply or any other function)
Hello R community,
I am computing weighted average statistic by using ddply function:
My data set is:
N1 T1 S1 I1 C1 FY-4 ROE11 EPS11 MKT11
N1 T1 S1 I1 C1 FY-3 ROE12 EPS12 MKT12
N1 T1 S1 I1 C1 FY-2 ROE13 EPS13 MKT13
N1 T1 S1 I1 C1 FY-1 ROE14 EPS14 MKT14
N1 T1 S1 I1 C1 FY0 ROE15 EPS15 MKT15
N1 T1 S1 I1 C1 FY1 ROE16 EPS16 MKT16
N1 T1 S1 I1 C1 FY2 ROE17
2017 Sep 11
4
Case statement in sqldf
Hi all,
I am trying to create a new variable called Fiscal Year (FY) using case expression in sqldf and I am getting a null FY , see the code below .
Please advise me as to how I can do this mutation.
library(zoo)
library(lubridate)
library(stringr)
library(RH2)
library(sqldf)
cr$ReportDate = as.Date(cr$ReportDate, format ='%Y-%m-%d')
> cr2 = sqldf(" select
2013 Jul 16
2
Problem following an R bug fix to integrate()
I have been told by the CRAN administrators that the following code generated
an error on 64-bit Fedora Linux (gcc, clang) and on Solaris machines (sparc,
x86), but runs well on all other systems):
> fn <- function(x, y) ifelse(x^2 + y^2 <= 1, 1 - x^2 - y^2, 0)
> tol <- 1.5e-8
> fy <- function(x) integrate(function(y) fn(x, y), 0, 1,
2006 May 09
4
ruby equivalent of phpinfo()
Is there a ruby equivalent for the phpinfo() php function that displays
all the variables and environment settings ?
Thanks,
vasu.
--
Posted via http://www.ruby-forum.com/.
2009 Mar 12
3
Map using projection
Hi list,
I have a real problem with plotting US state map. When I try to plot the
northern state, there will be some blank space in the top of graph (see case
1 example), and when I plot southern states, there will be a blank space in
the bottom of plot (see case 2). I spent almost 2 days to figure out a
solution, but could not. Would you help me if you know what the problem is?
Regards,
Alireza
2009 May 26
4
Creating multiple graphs based on one variable
Dear List,
I would like to create several graphs of similar data. I have x and y values for several different individuals (in this case fish). I would like to plot the x and y values for each fish separately. I can do it using a for loop, but I think I should be using "apply". Please let me know what I am doing wrong, or if there is a "better" way to do this. What I have