Displaying 20 results from an estimated 700 matches similar to: "interactive menu in scripts"
2008 Feb 21
2
triangle.plot - change the axes orientation
Hello, I need to chenge axes orirentation in triangle plot. (function
triangle.plot in ade4 package)
I want to plot elasticities of some species in demographic triangle, where
axes values commnly increace "clockwise".
If some better imangination is needed, see
http://www.open.ac.uk/science/biosci/personalpages/j.silvertown/pdfs/Silvertown%20et%20al.%201993.pdf
I am sorry if I just
2008 Jan 20
1
distance matrix
Hello, I want do get the point to point distance matrix.
Suppose, I have a data frame where the first column is X and second column
is Y coordinate of points.
I define a function dst(x1,y1,x2,y2) to claculate distance between two
points. But I don't know how to tell R to calculate dst for every two points
and create a matrix of these distances.
Can you give me a little guidance, please? I am
2007 Jun 02
3
Updating R version
A quick question. I am trying to understand how I could move the installed
packages in my R 2.3 version to the newly installed R 2.5 version, without
having to install all the packages again. I copied the files under the old
library subdirectory to the new library subdirectory. But still the newer
version is not recognizing the packages that were copied over.
Thanks.
[[alternative HTML version
2007 Jul 25
2
initalizing and checking validity of S4 classes
Dear useRs and wizaRds,
I am currently developing a set of functions using S4 classes. On the way I encountered the problem exemplified with the code below. For some reason the 'validity' method does not seem to work, i.e. does not check for errors in the specification of the slots of the defined class. Any hints?
My understanding of the whole S4 system was that validity checks are made
2006 Jun 23
2
problem with hist() for 'times' objects from 'chron' package
Hello dear useRs and wizaRds,
I encountered the following problem using the hist() method for the
'times' classes
from package 'chron'. You should be able to recreate it using the code:
library(chron)
# pasted from chron help file (?chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92", "02/28/92",
"02/01/92"))
class(dts)
2008 Jan 22
1
deparse, substitute and S4 generics
Hello everyone,
I encountered the following confusing behavior of 'deparse' and
'substitute' while programming with S4 classes (see example below). It
seems like the presence of '...' argument in the definition of the
generic generates the problem. I have no clue why, can anyone explain
that to me? Are there any "workarounds"?
Thanks a lot for your time!
2007 Mar 13
4
'substitute' question
# I use this code to label a graph with the R2:
# graph
x <- rnorm(100)
y <- x + rnorm(100)
lm1 <- lm(y~x)
plot(x,y)
# label
R2text <- substitute(paste(R^2," = ",r2),list(r2=r2))
text(1,-3,R2text, col="red")
# i have modified this a bit, so that i have a vector with other labels,
each of which
# will be labelled on the graph. Example:
texts <- c("And the
2007 Mar 08
1
sink with R-code
I have the same question that Eusebio had:
Is there a function similar to "sink" that redirect also R code to a
file that
is:
sink("R001")
x <- c(2,-6,-4,8,5,4,1,3,4,-9,0,1)
A <- matrix(x, ncol=3)
A
A.prima <- t(A)
A.prima
dim(A)
dim(A.prima)
sink()
create a file "R001" with contents:
------------------------------------------
[,1] [,2] [,3]
[1,]
2004 Mar 15
3
FW: Ugh
This got auto-discarded by mailman, so I''m reposting it.
Curt
-----Original Message-----
From: Nick Kral [mailto:nkral@pinnaclet.com]
Sent: Monday, March 15, 2004 2:21 PM
To: Kevin Smith
Cc: Wxruby developers'' list
Subject: Ugh
Ok, I found the checkbox I forgot to check to make the disk image a
proper size. I have a new disk image of wxruby-0.2.1-osx-panther (same
code,
2007 Mar 08
1
Searching and deleting elements of list
Hi,
I have a problem. Please, look at example and try to help me!!
> A<-c("aaa","bbb","ccc","ddd","eee")
> B<-c("vvv","ooo","aaa","eee","zzz","bbb")
> C<-c("sss","jjj","ppp","ddd")
> D<-c("bbb","ccc")
2007 Mar 13
3
Highlight overlapping area between two curves
Dear R helpers,
I have a graph as following; I would like to highlight the overlapping area
between the two curves. Do you know how to do this?
Thank you in advance for your help.
Nguyen
###START
x1 <- rnorm(10000, 0.70,0.12)
x2 <- rnorm(10000, 0.90,0.12)
d1 <- density(x1)
d2 <- density(x2)
plot(range(d1$x,d2$x), range(d1$y, d2$y), type = "n",
xlab = "X
2008 Jan 23
1
Package Building and Name Space
Hello,
I just don't get this and would appreciate if someone could write a line or
two: I'm trying to build this package and it stops installing after I add
the following to the NAMESPACES file:
>importFrom(gsubfn,strapply)
The error during the package test is:
Error in MyPackage::MyFunction :
package 'MyPackage' has no name space and is not on the search path
Calls:
2007 Mar 14
1
How to transform matrices to ANOVA input datasets?
Hello, R experts,
I have a list called dataHP which has 30 elements (m1, m2, ..., m30).
Each element is a 7x6 matrix holding yield data from two factors
experimental design, with treatment in column, position in row. For
instance, the element 20 is:
dataHP[[20]]
col1 col2 col3 trt1 trt2 trt3
[1,] 22.0 20.3 29.7 63.3 78.5 76.4
[2,]
2007 Nov 12
2
How can I fitting this function from values.
Hi all, I'd like fit this function:
G(t)=A*1/(1+t/B)*1/sqrt(1+t/C)
where A, B and C are fitting constants that one like search. I have
got a fcs<-(t,G(t)) value table in a data frame.
Any one can help me? Tahnks Horacio.
2004 Jan 29
10
Doubt about pattern
Hi All,
I have a very simple problem. I have several files in a same directory. I would like to send for an object only the files that finish in ".sens.". I execute the command below,
files <- dir(pattern="*.sens")
but it includes all of the files that have "sens", independent of they be in the end or in the middle of the name of the file. How could I solve
2007 Mar 07
3
Plotting a broken line?
Hi,
Is there a smart way in the R graphs to create a line that is broken in
intervals based on the indicator given below.
following is a small test graph
Location,indicator,otherinfo
1.2,1,2.2
2.5,1,2.5
3.7,1,2.3
20.1,2,4.3
22.5,2,5.2
25.0,2,3.4
27.3,2,2.2
35.1,3,3.4
37.0,3,7.2
38.0,3,6.1
40.1,3,5.4
52.9,3,3.3
Right now in the plot the line is continuous, but I would like to have
it broken
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
Hi,
I ran into the following peculiarity involving S4 method dispatch and
namespaces.
I develop a package which have a namespace and which depends on 'pixmap'
package, which itself does not have a namespace.
Now, in my package I have a class which has a slot for objects from
class "pixmap" and I
want to have a "plot" method for this new class. Not to clutter the
2008 May 15
2
openssh vulnerability
Hello Rene,
Maybe have you already upgrade you openssl/openssh packages if you using debian (or *buntu).
http://article.gmane.org/gmane.linux.debian.security.announce/1614
We have found some weak keys :
- nightlycomp@rio (sure)
- comp@rio (maybe)
Are you up to date ?
Can Fabrice sent you new ssh public ?
Tahnks
Best Regards
--
Gabriel CORRE
gac@4js.com - Four J's Development Tools -
2001 Feb 25
2
newbie question
Hello to all.
My name is Michal Bojanowski, I'm a Sociology student at Unversity of
Warsaw. Recently I've started to learn R when I've found myself frustrated
because of inflexibility of SPSS and other "user-friendly" statistical
software. As I said, I'm new here, so my question is very simple:
I wanted to use a large data set stored in SPSS-format file. I used the
2007 Mar 13
3
inconsistent behaviour of add1 and drop1 with a weighted linear model
Dear R Help,
I have noticed some inconsistent behaviour of add1 and drop1 with a
weighted linear model, which affects the interpretation of the results.
I have these data to fit with a linear model, I want to weight them by
the relative size of the geographical areas they represent.
_________________________________________________________________________________________
> example