Displaying 20 results from an estimated 3000 matches similar to: "Overlaying graphs"
2003 Aug 26
4
Viewing function source
I know I should probably RTFM for this question, but could someone tell me
if R supports the idea of "viewing source" on any particular function you
want to use?
If I want to "view source" on the rpois() function, for example, can I do
somethink like:
source(rpois)
To see how the function is implemented?
Regards,
Paul Meagher
Datavore Productions
50 Wood Grove Drive
2003 Sep 22
1
Updating a linear model
My google search for Plackett's Algorithm didn't return too much except that
Plackett's algorithm appears to be useful in Control Theory - it is
elaborated as "Plackett's algorithm for on-line recursive least squares
estimation". Sounds something like what I want.
I am looking at developing a user modelling type app (new data points coming
in and wanting to dynamically
2001 Nov 27
2
overlaying qqnorm plots...
I know this topic has had plenty of discussion in the last couple of days,
but....
I've been trying to compare the effects of different fitted methods for
systems of equations (OLS, SUR, 2SLS, 3SLS ) and would like to compare the
residual plots (easy) and the qqnorm/qqplot of the fits for the different
fitted methdos. For example,
qqnorm( residuals( lm( q ~ p + f + a ) ) )
par( new = TRUE )
2009 Jan 06
1
Overlaying several qqnorm curves in same frame
Hi all,
I want to create a rather standard overlaid qqnorm plot on a single
variable, with different subgroups of the same dataset plotted using
different colors/symbols/etc. (I don't want side-by-side, rather
different-colored curves on the same graph)
I managed to do it rather tediously using "lapply" and "split", and wondered
whether there is any single-command
2002 Nov 16
1
shelling out to R for one command
I am developing a PHP script and want to use R to get the probability of a
t-value.
This just requires that I issue one R statement and output the result.
The problem I am having is that R will accept batch input but I am not
sure that it will accept a "one-liner" (i.e., "/usr/local/bin/R qt(.975,
20)" does not work but you get the idea).
Is there a way to pass R a
2011 Jun 12
2
R graphs differ from exported one
Hello everybody! This is my first mail so I'll write a couple of lines
of self-introduction.
My name is Massimiliano, I'm from Italy and I'm studying Mathematical
Engineering.
I started using R in my Statistics course and have to use it to make a
project which I'll discuss at the end of the course.
The problem I'd like to ask you about follows.
Suppose I have imported a
2005 Apr 19
2
Odd diagnostic plots in mixed-effects models
Dear R community,
In the excellent nlme package the default diagnostic plot graphs the innermost residuals against innermost fitted values. I recently fit a mixed-effects model in which there was a very clear positive linear trend in this plot.
I inferred that this trend occurred because my fixed effect was a two-level factor, and my random effect was a 12-level factor. The negative residuals
2005 Apr 28
3
have to point it out again: a distribution question
Stock returns and other financial data have often found to be heavy-tailed.
Even Cauchy distributions (without even a first absolute moment) have been
entertained as models.
Your qq function subtracts numbers on the scale of a normal (0,1)
distribution from the input data. When the input data are scaled so that
they are insignificant compared to 1, say, then you get essentially the
2007 Feb 08
1
the plotting position of theoretical quantile for qqnorm
Hello,
I have a doubt about the plotting position of the theoretical quantile for
the qqnorm
command in R.
Let F be the theoretical distribution of Y, we observed a sample of size n,
y1,y2, ...,
yn. We then sort it and comspare these empirical quantiles to the expected
ones
from F. For the plotting poition, there are several options:
1. i/(n+1)
2. (i-.375)/(n+.25)
3. (i- .3175)/ (n + .365)
etc.
2003 Dec 06
1
pdf() function, screen command and graphs
Dear [R]-list,
I am trying to do a pdf() of the following graphs but don't understand
why the pdf() function does produce an empty pdf file.
(I use R1.7.0 on MacOS 10.2.8)
any idea? Is pdf() incompatible with screen?
Thanks a lot,
DLC
## create dataset
x=rnorm(1000,10,2)
y=rpois(1000,5)
## graphs
pdf()
par(col.main=4,omi=c(0,0,1.25,0))
split.screen(c(1,2))
2007 Jun 29
2
why this doesn't work for qqnorm
I want to qqnorm every column in a table. When I try the first column
using
qqnorm(table$column1), it worked.
But when I use
qqnorm(table[1]), it tells me "Error in stripchart(x1, ...) : invalid
plotting method".
What happen? How can I make a function that qqnorms every column?
thanks a lot.
-jiong
The email message (and any attachments) is for the sole use of the intended
2009 Apr 26
3
Flipping axes of qqnorm
Hi all,
I have just started using R to produce qqnorm plots. I am trying to
switch the x and y axes so that the theoretical values are plotted on the y
axis and my data on the x axis. Can anyone help me with this?
Thanks
--
View this message in context: http://www.nabble.com/Flipping-axes-of-qqnorm-tp23248007p23248007.html
Sent from the R help mailing list archive at Nabble.com.
2005 Apr 03
2
how to draw a 45 degree line on qqnorm() plot?
# I can not draw a 45 degree line on a qqnorm() plot,
jj <- sample(c(1:100), 10)
qqnorm(jj)
abline() don't work.
Thank you.
2005 Apr 25
2
residuals in lmer
Does anyone know how to extract residuals in lmer?
Here's the error I get:
>
crop.lme=lmer(response~variety*irrigation*pesticide+(1|rep)+(1|rep:
pesticide)+(1|rep:pesticide:irrigation), crop.data)
> qqnorm(crop.lme)
Error in qqnorm.default(crop.lme) : y is empty or has only NAs
> resid(crop.lme)
NULL
Thanks!
--Jake
2010 Apr 15
1
classes and functions for qqnorm and stem
Referring to "Using R for Data Analysis and Graphics" by J H Maindonald,
and available from the R site, I found the example on p.30 non-working:
> stem(qqnorm(possum$hdlngth))
Error in stem(qqnorm(possum$hdlngth)) : 'x' must be numeric
Since qqnorm(possum$hdlngth) plots, and
> class(possum$hdlngth)
[1] "numeric"
, the problem must be here:
>
2000 Sep 21
2
qqnorm(), is it "backwards"?
Hello R friends,
I'm wondering why I get funny qqnorm() results. It seems that they should
all be reflected in the normal qqline().
For instance: if I qqnorm() bimodal or uniform data I get a sigmoidal in
which the qqnorm() points lie above the qqline() at -ve theoretical
quantiles, and the qqnorm() points lie below the qqline() at +ve
theoretical quantiles. Yet I expect such platykurtic
2008 Oct 22
1
R 2.8.0 qqnorm produces error with object of class zoo?
Dear list-reader,
by running the following script:
library(zoo)
sessionInfo()
search()
packageDescription("zoo")
data(EuStockMarkets)
dax <- as.zoo(EuStockMarkets[1:10, "DAX"])
daxr <- diff(log(dax))
identical(as.vector(qnorm(daxr)), qnorm(coredata(daxr)))
qqnorm(coredata(daxr))
qqnorm(daxr)
qqnorm() produces an error:
> qqnorm(daxr)
Fehler in if (xi == xj) 0L
2016 Apr 04
2
question about probplot in e1071 package
Hello!
I am using probplot in the e1071 package and want to do something like the
following, only with the the 2nd plot overlaying the first. I can't seem to
make it work. Any suggestions?
*library(e1071)
**x <- rnorm(100, mean=5)*
*y <- rnorm(100, mean=3)*
*probplot(x, line=FALSE)
*
*probplot(y, line=FALSE)
*
*Regards,*
*Tom*
[[alternative HTML version deleted]]
2009 Apr 23
1
qqnorm.lme & pairs.lme
Hello,
I am trying to do some plotting to check random effect assumptions for a
model I fit using lme.
I want to use qqnorm and pairs (similarly to examples given in Pinheiro &
Bates p. 188), but it's not working. Here's some relevant code and the
error message:
library(nlme)
data(Machines)
m1 <- lme(fixed=score~Machine,random=~1|Worker/Machine, data=Machines)
qqnorm(m1,
2010 Apr 15
2
Consistent behaviour of for-loop
First my excuses if I keep bugging everyone in this list, but I am a
newbie, and tend to find some behaviour that looks unexpected to me; and
I would really appreciate to be pointed to some location that allows me
to understand more about this software. Here is my next question:
> par(mfrow=c(1,1))
> qqnorm(rnorm(20))
> qqmath(rnorm(20))
> par(mfrow=c(3,4))
> for(i in