Displaying 20 results from an estimated 900 matches similar to: "plot and its options"
2002 Feb 06
3
Help plot
Hello,
I would like plot a vector and want to specify the Xticks which will be
displayed. Is it possible ?
For example, suppose that x is a vector of length 3. I just want the
Xticks (and the corresponding labels)
for 1 2 and 3 to be displayed ( and not 1, 1.5, 2,2.5, ....) .
Thanks
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student
2001 Mar 15
3
outer
Dear r-plus users,
i would like to use outer in the following case outer(x,y,FUN="fun")
i suppose that my function fun is of the following form:
fun<-function(x,y)
{
if(y>x) return(x+y)
if(y<=x) return(0)
}
My problem is that the command outer(x,y,FUN="fun") return me a
null matrix instead of an upper triangular matrix.
Is somebody have a solution ?
Thanks for your
2002 Feb 26
3
a trick ??
Dear R users,
Suppose i have an A square matrix rxr. I want to obtain a block matrix
B (pxr,pxr) where
the p diagonal blocks are A and the others values are 0.
I would like to do something like : diag(A,ncol=pr, nrow=pr)
How can i do it ??
Thanks in advance,
Olivier.
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student phone: (33) 04
2001 Oct 02
2
R and Java
Daer all,
Before to expose my problem, this the configuartion of my environment.
I use the version 1.2.1 of R with a limux system (redhat)
I have installed SJava (from omeghat) package successfully.
So, i wanted to try an example (calc.R) that is provided in the library.
This is the message I obtained:
Error in isJavaInitialized("Java virtual machine has not been
initialized. Call
2002 Mar 21
1
help with print and ways to display results
Hi all,
I have some (stupid) problems to display results and
i don't find a solution.
1-
res<-c(1,2,3)
I would like to display
>Results are 1 2 3
The following command cat(paste("Results are ",res,"\n")) give me
>my results are 1 my results are 2 my results are 3
2- res<-cbind(c(1,2),c(2,3))
I would like to display
>Result is the matrix 1 2
2001 Oct 01
3
save plot graph
Dear all,
I have a lot plot graphs and i would like to save them.
One solution is to use the grab function with xv.
But it is tedious....
So is there a R function that can save automatically
the result of a plot in a gif or ps or bmp file
Thanks
Olivier
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2
2002 Jul 02
3
mean and array
In general this is what "apply" does. In your example you could use
rowMeans(ar) as well, I think.
Reid Huntsinger
-----Original Message-----
From: Olivier Martin [mailto:olivier.martin at inrialpes.fr]
Sent: Tuesday, July 02, 2002 10:55 AM
To: r-help
Subject: [R] mean and array
Hi all,
I have an array, one say ar, with 3 dimensions.
dim(ar)
>200 3 4
I would like to
2001 Mar 30
1
SVM
Hi all,
I would like to try SVM method. Is somebody know if there
are available R or S scripts.
Thanks
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes fax : (33) 04 76 61 54 77
655, Av. de l'Europe
Montbonnot
2001 Mar 30
1
SVM support vector machine
Hi all,
sorry for my previuos question that was incomplete...
i would like to test the SVM (support vector machine) algorithm?
is somebody know if there are available program for R or S?
thanks...
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes
2001 May 23
2
image with R
Hi all,
i would like to analyze some images with R.
For example, i have a tif image (16 bit=2^16 values) that i convert in
ascii file (8 bit =256 values only)
so it is easy to work under R with image() function.
But, i would like to keep my image with 2^16 values...
how can i do to load my tif image in my workspace?
Do you know if there is a package for analysis image ?
Thanks
Olivier
--
2002 Aug 20
4
plot and bg
Hi all,
I would like to plot some points and define the bg color of my graphics.
But the bg parameter set is defined for the. whole graphic.
In fact, i would like to use something like :
box(bg=gray(0.9)).
So, the background concerns only the plot region and not the main
title, the x title and the y title.
The option col for the function box() concerns the contour and there is
no option
2001 Jul 04
3
a little probleme
Hi all,
i would like to find the best way to resolve the following problem.
Suppoose i have a vector x of length N with k different elements.
length(x)=N
u<-unique(x)
length(u)=k
I would like to get a matrix M with k rows and N columns such that:
in each line i (i=1,...,k), which(x%in%u[i]) is equal to 1 and 0 else.
Thanks for your help.
Olivier
--
2002 May 21
1
help with par
Dear R-users,
Using the plot function, I would like that axes are [-1,1] for x and
[-1,1] for y.
But when I use xlim or ylim, it adds automaticaly a small space (i.e.
[-1.25,1.25]).
I suppose that i have to use the fuction par() but i don't find the
good parameter for this problem.
So, how can i define the axes to be exactly [-1,1].
Thanks
Olivier
--
2002 Mar 29
1
help with lme function
Hi all,
I have some difficulties with the lme function and so this is my problem.
Supoose i have the following model
y_(ijk)=beta_j + e_i + epsilon_(ijk)
where beta_j are fixed effects, e_i is a random effect and
epsilon_(ijk) is the error.
If i want to estimate a such model, i execute
>lme(y~vec.J , random~1 |vec .I )
where y is the vector of my data, vec.J is a factor object
2001 Jul 05
1
tcltk AND R
Hi all,
could somebody indicate me a tcltk tutorial for beginners with some
examples
for R.
Thanks,
Olivier
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes fax : (33) 04 76 61 54 77
655, Av. de l'Europe
Montbonnot
2002 Apr 03
0
help on lme and variance estimation
Hi all,
I have a random effect model that can be written as
y_{ij} = \beta +\alpha_i+ \epslion_{ij}
where \alpha_i ~ N(0,\sigma^2_effect) and \espilon_{ij} ~
N(0,\sigma^2_error)
and i compute
res<-lme(data~1,data=Data,random=~1 | veci)
The estimation of \sigma_error is given by res$sigma but
I don't understand how i can find the estimation of \sigma _effect with
the object res
(I
2002 May 08
2
TCLTK and windows
Hi all,
Is it possible to use the R tcltk library with windows ?
Thanks
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN
PhD student phone : (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes fax : (33) 04 76 61 54 77
655, Av. de l'Europe
Montbonnot
2002 Aug 19
1
latex for xlab
Hi all,
I don't find the solution to my problem .
I represent some points and i would like a title for the x axis.
I would like to write log_2 where 2 is a subscript of log.
I think i have to use the functions parse or expression but i have some
difficulties
to understand how i should use them.
Thanks
--
2001 Apr 30
2
R mode for emacs
Hi all,
I wonder if there is a R mode for emacs which highlights the R syntax.
If there is one, I would be interested in downloading the latest version
.
regards,
Olivier
--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Olivier MARTIN phone: (33) 04 76 61 53 55
Projet IS2 06 08 67 93 42
INRIA Rhone-Alpes fax : (33) 04 76
2001 Apr 26
2
little question
Hi all,
i have a little pb but i don t find how i can solve it..
this is..
i have two vectors x and yn and they don t have the same length...
(i suppose length(x)>length(y))
this is what i want to do.
i suppose that
x=c(10,1,2,3,7,9,1,4,2,11,2,10) and y=c(1,2,4,10)
i want to find all the numbers of rows i of x for which x[i] exists in y
...
i.e. in this case ...rep=(1,2,3,7,8,9,11,12)
Best