Displaying 20 results from an estimated 800 matches similar to: "question on image() function?"
2011 Oct 05
2
A question about R image function
Dear folks,
I have a question about the image() function in R. I found the following
link talking about this
but the replies didn't help with my situations.
http://r.789695.n4.nabble.com/question-on-image-function-td839275.html#a839276
To be simple, I will keep using the example in the above link.
Suppose the data are like
x y mcpvalue
0.4603578
2007 Sep 13
2
handle dates in R?
Dear Rusers,
I have some data in .csv file like "2004-8-1" and "2004-10-1", and i need
to convert them into days from the origin (January 1, 1960).
I have tried the function date.mmddyyyy(), but cannot get it. Anybody can
show me how to handle the date data?
Thanks very much!
My dataset like:
time
2004-8-1
2004-10-1
2001-9-1
2002-9-1
--
With Kind Regards,
2008 Sep 23
3
Generating series of distributions with the same skewness and different kurtosis or with same kurtosis and different skewness?
Dear R users,
I hope to explain the concepts of skewness and kurtosis by generating
series of distributions with same skewness and different kurtosis or with
same kurtosis and different skewness, but it seems that i cannot find the
right functions.
I have searched the mailing list, but no answers were found.
Is it possible to do that in R? Which function could be used?
Thanks a lot.
--
2007 Dec 13
1
Probelms on using gam(mgcv)
Dear all,
Following the help from gam(mgcv) help page, i tried to analyze my
dataset with all the default arguments. Unfortunately, it can't be run
successfully. I list the errors below.
#m.gam<-gam(mark~s(x,y)+s(lstday2004)+s(slope)+s(ndvi2004)+s(elevation)+s(disbinary),family=binomial(logit),data=point)
2008 Jan 01
3
Specify a correct formula in R for Piecewise Linear Functions?
Dear all,
I have two variables, y and x. It seems that the relationship between them
is Piecewise Linear Functions. The cutpoint is 20. That is, when x<20, there
is a linear relationship between y and x; while x>=20, there is another
different linear relationship between them.
How can i specify their relationships in R correctly?
# glm(y~I(x<20)+I(x>=20),family = binomial, data =
2007 Oct 12
3
Anybody has ever met the problem to add a legend to a figure generated by image()?
Dear friends,
Anybody has ever met the problem to add a legend to a figure generated by
image()? I have three variables,x,y and z.
x and y are the coordinates, and z is the third values. we can use image(x,
y, z,...) to generate a figure according to the z-values, but the problem is
the figure legend. How can the legend be added to a figure generated
by image()? Note that filled.contour() can
2007 Oct 02
2
How to add legend for image()?
Dear friends,
The following is an example to explain my question. I want to get a
legend which will show the z-values according to different colors in image()
function.
x<-sort(runif(10)) #x-coordinates
y<-sort(runif(10)) #y-coordinates
z<-matrix(runif(100),nrow=10) #attributes values
image(x,y,z,col=gray((6:3)/6))
# legend(x,y,legend=z,col=gray((6:3)/6)) #error. the colors should
2007 Sep 17
2
What's the corresponding function in R for lo() function in S-PLUS?
Dear friends,
In S-PLUS, we can use the following argument, but not in R.
mode12 <- gam(score1 ~ lo(latitude) + lo(longitude))
I searched the help in S-PLUS, it says lo() Allows the user to specify a
Loess fit in a GAM formula, but i didn't find the correponding function in
R.
Anybody knows how to do the similar task in R?
Thanks very much.
--
With Kind Regards,
oooO:::::::::
2007 Aug 17
3
Is there any good tools to facilitate us to create R functions?
Dear R users,
We have some programs for the specific task in our research, but they were
very commonly used. We want to make some functions for them, anybody can
recommend any good tools to facilitate us to create R functions even without
going deep into the theories of R functions ?
Any suggestions or help are greatly appreciated.
--
With Kind Regards,
oooO:::::::::
(..):::::::::
2007 Dec 31
2
help on ROC analysis
Dear all,
Some functions like 'ROC(Epi)' can be used to perform ROC analyssi, but it
needs us to specify the fitting model in the argument. Now i have got the
predicted p-values (0,1) for the 0/1 response variable using some other
approach, see the following example dataset:
id mark predict.pvalue
1 1 0.927
2 0 0.928
3 1 0.928
..................
2006 Nov 19
2
questions on adding reference line?
Dear Ruser,
I use abline() function to add the reference line successfully, but i
can't display the values corresponding to the reference line on the x/y
axis, anybody knows how to display it?
*My simulated programs:*
y<-rnorm(50)
plot(x,y)
abline(v=0.5) *#my question is how to display x=0.5 in the x axis?*
Thanks in advance.
--
With Kind Regards,
oooO:::::::::
(..):::::::::
2000 May 29
1
Syslog facility in Linux
Hi !
While browsing Linux manpages (man 3 syslog) I noticed that the manual
says that the LOG_AUTH facility is deprecated use LOG_AUTHPRIV instead.
Is there a good reason why OpenSSH doesn't have an option to use
LOG_AUTHPRIV facility ? (Looks like that tcpd/telnet etc. use the AUTHPRIV
facility (in RH6.2)).
Shouldn't be too hard to add the AUTH_PRIV facility ?
Cheers,
-Jarno
--
2006 Oct 12
2
how to get the variance-covariance matrix/information of alpha and beta after fitting a GLMs?
Dear friends,
After fitting a generalized linear models ,i hope to get the variance of
alpha,variance of beta and their covariance, that is , the
variance-covariance matrix/information of alpha and beta , suppose *B* is
the object of GLMs, i use attributes(B) to look for the options ,but can't
find it, anybody knows how to get it?
> attributes(B)
$names
[1] "coefficients"
2010 May 03
2
toma de muestras
Buenas tardes a todos.
Mi problema es el siguiente:
Calculo una muestra de unos índices (s) y a partir de esa muestra elijo
aquellos elementos de una tabla de datos que tengo (en este caso XP4) que
cumplen la condición de que el índice de XYP sea el de la muestra. Ahora
comienza mi problema, la única forma que he encontrado para que me R me
tome todos los elementos que necesito es creando un
2006 Dec 07
3
wierd callerid problem
I have a site running asterisk 1.2.8 with a hand full of polycoms and grandstream 2Kxp's. When a call is missed and you look at the missed call logs on either, its has the persons exten, not the incoming caller id. Any ideas? \\\|/// \\ ~ ~ // ( @ @ )--oOOo-(_)-oOOo?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Feb 01
3
No peth interface for xenbr4 and xenbr5
Hello all,
I have a Xen server with 6 network interfaces, I want a bridge on
all of them.
I use a personal network script like this :
#!/bin/bash
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1
"$dir/network-bridge" "$@"
2000 Jan 27
2
Files have 555 and they are deletable or is it a bug ?
Hello !
I've a problem with files which are set to 0555.
For example: two users (user1 and user2)
two groups (usergroup1 usergroup2)
/daten/rechner/comp1 is set to 777.
User1 creates a file (test.txt) in the [files] share, which is correctly
set to 0555. It's owner is user1 and it's group is usergroup1.
Now user2 from usergroup2, who can correctly read but not edit
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers,
I have met a difficult problem on explaining the differences of principal
component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't
met before.
Althought they have got the same eigenvalues, their coeffiecients were
different.
First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show
the original dataset, hoping sb. to try and explain it.
2008 Nov 13
4
Howto make a 2.6.26 kernel for my domUs
Hello,
I wants to make a self compiled kernel for my domUs on a debian etch
server with Xen 3.1.4 and 2.6.18.8 dom0 kernel.
So, I download sources for linux-2.6.26.8, and I enabled all the Xen
features :
Symbol: HVC_XEN [=y]
Symbol: XEN_BALLOON [=y]
Symbol: XEN_FBDEV_FRONTEND [=y]
Symbol: XEN_SCRUB_PAGES [=y]
Symbol: XEN_KBDDEV_FRONTEND [=y]
Symbol: XEN_BLKDEV_FRONTEND [=y]
Symbol:
2002 Dec 18
3
Integrating a samba server in a samba controlled domain
Hi !
I have followed the Samba-Howto, but I still have some problems.
Our network is composed of Win2K stations and two samba servers (2.2.5)
running under SuSE Linux 8.1.
HIROSHIMAN is configured as PDC (domaine CHERYLNET) and everything is running
fine, from login to share and printer access.
VLOUCHI is a second file server and its workgroup (thus domain) is also
CHERYLNET ; security is