Displaying 20 results from an estimated 2000 matches similar to: "How can I do a spinning plot in R?"
2003 Jul 16
2
Stem and leaf display?
I would like to do some fairly basic stem-and-leaf displays in R.
I am aware (I might even say painfully aware) of stem(base) and
have tried it. That's why I'm hoping someone has a usable stem-
and-leaf display for R so that I don't have to write my own.
r-project.org > Search > R Site Search > "stem and leaf display"
finds nothing.
I also tried the mail archive
2003 Feb 17
4
inserting elements in a list
I've searched the doc for insert
and could not find the way to do the following,
hope someone can help:
Let's say we have a vector:
> a
[1] "1" "2" "3" "5" "6" "3"
and we want to insert a "7" after
any given "3", i.e., we want vector a
to become:
[1] "1" "2" "3"
2005 Feb 08
2
lme4 --> GLMM
hello!
this is a question, how can i specify the random part in the GLMM-call
(of the lme4 library) for compound matrices just in the the same way as
they defined in the lme-Call (of the nlme library). For example
i would just need
random=list(my.Subject=pdBlocked(list(pdIdent(~... , ...),pdIdent(~... ,
...))))
this specification , if i also attach library(nlme) , is not
2005 Feb 08
2
lme4 --> GLMM
hello!
this is a question, how can i specify the random part in the GLMM-call
(of the lme4 library) for compound matrices just in the the same way as
they defined in the lme-Call (of the nlme library). For example
i would just need
random=list(my.Subject=pdBlocked(list(pdIdent(~... , ...),pdIdent(~... ,
...))))
this specification , if i also attach library(nlme) , is not
2001 Jun 06
3
error in dbeta (PR#970)
Full_Name: Hans Peter Wolf
Version: 1.2.1
OS: hpux10.20
Submission from: (NULL) (129.70.84.25)
dbeta computes a wrong result with parameters (1.3,1)
> version
platform hppa2.0-hp-hpux10.20
arch hppa2.0
os hpux10.20
system hppa2.0, hpux10.20
status
major 1
minor 2.1
year
2003 Oct 21
2
report generator a la epiinfo
Hi
I'd like to use R in epidemiology and disease surveillance.
In EpiInfo you can have a script (.pgm) which calls a predefined report
(.rpt), where a table is calculated and values picked from that table
and placed where the author of the report wants them, with text around
those values. (Please see example below.)
I've looked at manuals, faq, mail-search and google. The closest is an
2004 Oct 08
1
Chernoff faces
> >>>>> "Kenneth" == Kenneth Cabrera <krcabrer at perseus.unalmed.edu.co> writes:
>
> Kenneth> Hello everybody: Does any one has a function to build Chernoff
> Kenneth> faces?
>
> Many of us don't think it's worth them.
> But we know that opinions differ and gladly incorporate
> (good quality) submissions of source code.
>
2001 Mar 20
3
finding dedicated indexes?
Hi,
I've got a matrix of two columns, say:
> d <- t(array(1:20,dim=c(2,10)))
> d
[,1] [,2]
[1,] 1 2
[2,] 3 4
[3,] 5 6
[4,] 7 8
[5,] 9 10
[6,] 11 12
[7,] 13 14
[8,] 15 16
[9,] 17 18
[10,] 19 20
now I need those values from column #2 where column #1 is equal to
certain values. eg.:
> i <- c(13,5,19)
The
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
Sorry, for my mail from last night contains no subject.
Therefore, I send it again and two tcltk questions are appended.
----------------------------------------------------------------------------
Prasad wrote:
> I wrote a function in R which uses tcltk package .... essentially I wanted
> to give within that function, a widget with 2 radiobuttons to choose
> between plotting Precip
2005 Aug 05
5
How to set the floating point precision beyond e-22?
We have a problem inverting a matrix which has the following eigenvalues:
> eigen(tcross, only.values=TRUE)
$values
[1] 7.917775e+20 2.130980e+16 7.961620e+13 8.241041e+12 2.258325e+12
[6] 3.869428e+11 6.791041e+10 2.485352e+09 9.863098e+08 9.819373e+05
[11] 3.263408e+05 2.929853e+05 2.920419e+05 2.714355e+05 8.733435e+04
[16] 8.127136e+04 6.543883e+04 5.335074e+04
2003 Apr 02
19
Combining the components of a character vector
Dear Help,
Suppose I have a character vector.
x <- c("Bob", "loves", "Sally")
I want to combine it into a single string: "Bob loves Sally" .
paste(x) yields:
paste(x)
[1] "Bob" "loves" "Sally"
The following function combines the character vector into a string in the
way that I want, but it seems somewhat inelegant.
2002 Feb 22
3
Cent. Mov. Ave
Dear R People:
Here is an interesting question(I think)
Suppose I want to calculate Centered Moving Averages; i.e.
x[1] <- ( sum(y[1:12]) )/12
x[2] <- ( sum(y[2:13]) )/12
and so on.
Of course, this is easily done through loops. However, I have
been trying to do this more elegantly, but have failed. I have
tried things like
j1 <- 1:109
j2 <- 12:120
x[1:109] <- ( sum( y[j1:j2])
2003 Sep 14
2
Convert decimal to binary data
Hi,
I would like to convert a decimal into a binary number, for instance :
2->(1,0)
Any one knows how to do that ?
Thanks a lot
paul
---
[[alternative HTML version deleted]]
2004 Feb 05
2
(no subject)
Hello,
Splus contains the function intbin(x,l).
This function allows to make a conversion from an integer x to a binary of
length l.
for example
intbin(3,2) returns 11
intbin(3,3) returns 011
Do you know how to do it in R ?
Thank you meriema
2005 Sep 21
1
Doubt about Sweave
Hi,
At this moment, I make my R output using comments and latex tags in R.
Something like this:
### make a plot
plot(y~x)
dev.copy2eps(file="plot.eps")
# @\includegraphics[width=\linewidth]{plot}@
...
After I include the file saved with this code in a latex document using the
listings package.
It work.
I reading about Sweave and it make a good output. But all example is made with
2003 Dec 05
5
GUI's for R
Hello,
I am not currently using R but I have been using S+ for sevaral years. I
think that I fit in the category of power users, never using the GUI
prefering the flexibility of a command line interface (CLI). In a short
while I will try to move to R, that is if we can convince our IT people
that installing a freeware package on a Unix server will not damaged the
companie's network! The
2003 Oct 08
3
2 questions regarding base-n and identifing digits
Dear listers,
I have two questions:
(1)
Is there a way in R to change the base-n of the calculations. I wnat to run
some calculations either in binary (base-2) or base-4. Is there a way to
specify that in R - to chnage from the decimal?
(2)
I also want to extract the digits from a larger number and store them as a
vector.
I could do it through converting top string, parsing the string and
2005 Oct 20
5
spliting an integer
Hi there,
From the vector X of integers,
X = c(11999, 122000, 81997)
I would like to make these two vectors:
Z= c(1999, 2000, 1997)
Y =c(1 , 12 , 8)
That is, each entry of vector Z receives the four last digits of each entry of X, and Y receives "the rest".
Any suggestions?
Thanks in advance,
Dimitri
[[alternative HTML version deleted]]
2000 Mar 09
1
What is XGobi and what is it for?
I've seen XGobi come up in here from time to time, and I wonder what is
it, what is it for, do I need it? How about throwing me a bone here!
--
Paul E. Johnson email: pauljohn at ukans.edu
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785)
2000 Apr 25
1
loops
Hi R friends,
I havent asked a silly question in a long time so here it is:
Reading the last issue of Stat Can J. there is an article in a single
degree of freedom test for non aditivity of interactions in anova
tables with 1 obs per cell. The authors claim it is more powerfull than
Tukey but for the case of multiplicative interaction, which is the
alternative studied by Tukey. I tried to