Displaying 20 results from an estimated 3000 matches similar to: "xyplot"
2007 Jul 17
2
xyplot for longitudinal data
Dear R-help subscribers,
I use xyplot to plot longitudinal data as follows:
score<-runif(100,-4,5)
group<-sample(1:4,100,rep=T)
subject<-rep(1:25,4)
age<-rep(runif(4,1,40),25)
df<-data.frame(score,group,age,subject)
xyplot(score~age|group, group=subject,
panel=function(...){
panel.loess(...,lwd=4)
panel.superpose(...)}
,data=df)
this produced a plot with four panels one for each
2009 Sep 24
1
panel.text question
Dear R-help,
I would like to add text to each of four panels in a plot generated by
xyplot in lattice library. A sample code is given below, the plot generated
has the first label repeated in all panels!
How can I get the labels to be different in each panel?
library(lattice)
x <- rnorm(400)
y <- rnorm(400)
a <- gl(4, 100)
xyplot(y~x|a,
panel=function(...){
2006 Dec 26
1
xyplot line colors
Hello,
I have a longitudinal data with about 30 subjects. I used xyplot() to plot
the longitudinal data. One problem is that xyplot() recycles the color of
auto.key so that every 7th subject has the same color (symbol if setps() was
used). Is there a way so that every subject will have a unique color or
symbol?
Thanks
Osman
--
Osman O. Al-Radi, MD, MSc, FRCSC
Fellow, Cardiovascular Surgery
2005 Aug 26
1
compare c-index of two logistic models using rcorrp.senc() of the Hmisc library
Dear R-help,
Would it be appropriate to do the following to
calculate a p-value for the difference between c-ind
of x1 and c-inx of x2 using the output from
rcorrp.senc()
> r<-rcorrp.senc(x1,x1,y)
> pValue<-1-pnorm((r[11]-r[12])/(r[2]/r[5])*1.96)
Osman O. Al-Radi, MD, MSc, FRCSC
Chief Resident, Cardiac Surgery
University of Toronto, Canada
2006 May 07
1
nlme plot residuals per group
dear list:
I used the nlme library according to the great Pinheiro/Bates book, on
R2.3, WinXp
Lac.lme is an lme object with unbalanced data, group is a factor
variable with three levels, when I tried to plot the residuals by
group I got this error msg:
>plot(Lac.lme,resid(.,type='p')~fitted(.)|group)
Error in limits.and.aspect(prepanel.default.xyplot, prepanel = prepanel, :
2009 Jun 19
2
a plot of stacked boxes
Hello,
I would like to create a plot composed of stacked boxes (squares or
rectangles), where the size of the box would represent the frequency of
observations based on a categorical variable (group), the color would
represent the proportion of success (binary) within that group (outcome) on
a predetermined color scale. Ideally the boxes can be stacked from the
bottom left to the top right based
2006 May 30
1
position of number at risk in survplot() graphs
Dear R-help
How can one get survplot() to place the number at risk just below the
survival curve as opposed to the default which is just above the x-axis?
I tried the code bellow but the result is not satisfactory as some numbers
are repeated several times at different y coordinates and the position of
the n.risk numbers corresponds to the x-axis tick marks not the survival
curve time of
2009 Dec 11
1
shared axes in multipanel plot
Hello
I've created a function to make a plot with multiple pannels from columns
of data that are created in a previous function. In the example below the
number of columns is 8, giving 4 pannels, but in general it takes data
with any number of columns and figures out a nice layout.
The panels all have the same axes, and so I wonder what functions are
avialable to create axes only on the
2009 Jun 14
1
learning about panel functions in lattice
Hi All,
I am trying to understand panel functions. Let's use this example.
library(lattice)
time<-c(rep(1:10,5))
y <-time+rnorm(50,5,2)
group<-c(rep('A',30),rep('B',20))
subject<-c(rep('a',10),rep('b',10),rep('c',10),rep('d',10),rep('e',10))
myData <-data.frame(subject,group,time,y)
head(myData)
Plot 1
xyplot(y ~ time
2005 Mar 15
2
Flashpannel: How to get more than 28 buttons?
I have setup flash pannel, ... looks nice, but so far I could not
configure it to get more than 4x7 buttons.
I tried to make the buttons smaller, but than just the entire picture is
smaller.
The description says you can have a hundred buttons, ....
Can I have multiple flash pannels? E.g. for each department?
bye
Ronald
2008 Oct 31
4
Remedy 5.1
I installed Remedy a few weeks ago 5.01.02 patch 1313 because that is what my work provided. worked great for a little bit (openSUSE 10.3 64 bit then now has a heart attack and dies when I try to open a ticket click open new from AR control pannel
or if I click an already created one from AR control pannel or from AR Central Ticketing system, enter store number then click already created ticket
2012 Mar 28
1
GSoc Applicant
Hi there everyone,
Hope this finds you all well.
My name is Hassan and I am a Software Developer/Tester. I am applying for
Google Summer of Code this year for the Java Bindings Improvements project.
I have some questions that I'd like to ask, but first let me introduce
myself appropriately.
My name is Hassan Radi and I have been working in the software development
field for 4 years. Most of
2010 Apr 29
3
control span in panel.loess in xyplot
Dear R gurus..
Is it possible to control span settings for different values of a grouping
variable, when using xyplot? an example code shown below
d=data.frame(x=rep(sample(1:5,rep=F),10),y=rnorm(50),z=rep(sample(LETTERS[1:2],rep=F),25))
xyplot(y~x,data=d,groups=z,panel=panel.superpose,panel.groups=panel.loess(span=c(2/3,
3/4,1/2))
or something like..
2010 Aug 21
1
lattice::xyplot() with one factor for points and another for lines
Hi:
In lattice, how does one handle separate graphical behavior for two
different factors? In the xyplot below, the objective is to use the levels
of one factor to distinguish corresponding shapes and colors, and the levels
of the other factor to perform level-wise loess smooths.
# Illustrative data:
d <- data.frame(time = rep(1:8, each = 6), val = rnorm(48),
gp1 =
2007 Apr 01
2
FLAC: 99% complete message?
Hi,
I tried to encode a WAV file to FLAC. But then I get a strange message: 99%
complete. You can see the details below:
12 - In My Eyes (Radio Edit).wav: 99% complete, ratio=0,67412 - In My Eyes
(Radi
o Edit).wav: WARNING: skipping unknown sub-chunk 'LIST'
12 - In My Eyes (Radio Edit).wav: Verify OK, wrote 25090527 bytes,
ratio=0,670
I have encoded the file using 'flac -V
2016 Oct 17
4
Multiple readfile oddities, newlines etc
I have a plain text file, ASCII, unix line breaks. 1 single line, and all
that is in it is the word "radio".
Here's some test dialplan:
exten => 5,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN})
same => n,Set(feature=${FILE(/home/test/feature-1.txt,0,1,l,u)})
same => n,Verbose(${feature})
same => n,Set(featurefile=/home/test/feature-1.txt)
same =>
2006 Nov 23
1
loess lines in xyplot with two or more variables on the left side of a formula
Hello:
I recall something like this being discuss recently, but I can't seem
to locate an example in the archives. I have data like the following:
df <- expand.grid(1:4, 1992:2002)
names(df) <- c("MSA", "YEAR")
df$IDUPREV <- runif(44)
df$VALIDAT <- rnorm(44)
I want to create an xyplot() with separate loess lines for each series
(IDUPREV and VALIDAT) in
2009 Feb 11
1
2 different colors for 2 groups of lines using xyplot
Hi All,
I am trying to use xyplot to plot several lines in one panel with red
color for a group of lines, say 3 lines and blue color for another
group of lines, say 4. I know this can be easily done using regular
plot function. But i could not figure out how to do this in xyplot.
Any help would be greatly appreciated.
Xuesong
[[alternative HTML version
2003 Dec 25
3
Problem plotting with xyplot
Hi all,
I am just learning R and I am trying to work through the book "Applied
Longitudinal Data Analysis" by Singer & Willett. I have some code for this book
that supposedly works in S-Plus (I don't have S-Plus so I can't verify that) and
I am trying to run the examples in R. Most of the examples run, but I have
one plot that gives me an error message. I have
1998 Mar 17
0
R-beta: locfit -> CRAN
The locfit library is now available through CRAN, in the
Contributed R Code directory. Locfit fits local regression,
likelihood and density estimation models, in the spirit
of loess but with many additional features. To install,
unpack the locfit_19980309.tar.gz file, and
R INSTALL locfit
Most of the functionality and examples on my home page
http://cm.bell-labs.com/stat/project/locfit/ should