Displaying 20 results from an estimated 800 matches similar to: "Applying qqmath using gamma distribution..."
2009 Sep 17
2
QQ plotting of various distributions...
Hello!
I am trying with this question again:
I would like to test few distributional assumptions for some behavioral
response data. There are few theories about true distribution of those
data, like: normal, lognormal, gamma, ex-Gaussian
(exponential-Gaussian), Wald (inverse Gaussian) etc. The best way would
be via qq-plot, to show to students differences. First two are trivial:
qqnorm(dat$X)
2013 Jun 22
1
Superpose two QQ-plots (gamma distribution) with, lattice function qqmath()
David, Duncan,
> Hi
>
> Following on David's rate argument
>
> try (with modifications of pch and grid)
>
> rate <- 1/4
> shape = 8
> rate = c(rep(1/4,100),rep(1/3,100))
I don't think the problem is related to the rate argument, which can
well be vectorized, as is the case for a number of arguments in distrib
functions in R (note that you are redefining it
2005 Dec 21
2
Why lmer() is not working, altough lme4 is installed?
I have installed lme4 library, but when I try something with lmer()
function, I receive error message. On the other hand, I can use lme()
function from the same library. Are those two the very same function or
not? I am a bit confused.
I am using:
$platform: "i386-pc-linux-gnu"
$arch: "i386"
$os: "linux-gnu"
$system: "i386, linux-gnu"
$major: "2"
2009 May 16
4
rgl install failed...
Hello!
Interesting thing is that I cannot install rgl. It reports:
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ?rgl?
* Removing ?/usr/local/lib/R/site-library/rgl?
I am pretty sure that my X11 is fine. Does anyone know why I got this
error message?
Best,
PM
2011 Jun 03
2
Checking and building package
Hello!
I am truing to compile an R-package having c-code. I put foo.c in src/
folder and useDynLib("foo") in NAMESPACE file. When trying R CMD check,
I got an error message that shared object 'foo' is not found. Then I did
R CMD SHLIB foo.c first. However, after that, I got warnings from R CMD
check that there is an object file in /src folder. Even worse is if I
run R CMD
2007 Mar 21
2
Detailed legend in mathplot ...
Hello,
Recently, I have asked for a help with building graphs, and I got few
great advices. Now, my appetite is growing :) and I wander how to add
legend for two (or more) lines in following example:
matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n",
+ pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="",
2006 May 25
2
qqmath - Lattice error
Hi,
Don't have a clue what teh following error message
generated by this function call:
qqmath( ~val|ind,data = xx
,distribution = function(p){ qt(p,df=20)}
,ylab="Sample Quatinles"
,xlab="Theoretical Quantiles"
,panel=function(x,y)
{
panel.qqmathline(y
, distribution=function(p) qt(p,df=20)
2004 Jun 10
2
Lattice::qqmath -- groups option question
Does the 'groups' option on qqmath just color the points differently in the main distribution or does it actually overlay separate quantile plots for each subset? I would like to be able to do the latter.
--Rich
Richard Kittler
AMD TDG
408-749-4099
2001 Nov 29
2
text in qqmath
Hello,
I can't seem to make qqmath plot text.
v <- rnorm(8)
qqmath(~v) # this is ok, but
qqmath(~v, panel=function(x, y) {
points(x, y)
text(0, 0, 'print me', cex=2)})
isn't ok.
The axis frame is printed properly (ie, as in
qqmath(~v)), but neither 'print me' nor the points
show up on the graph. I can, however, see the upper
half of the word 'me' in the
2009 Sep 08
2
Very basic question regarding plot.Design...
Hello ALL!
I have a problem to plot factor (lets say gender) as a line, or at least
both line and point, from ols model:
ols1 <- ols(Y ~ gender, data=dat, x=T, y=T)
plot(ols1, gender=NA, xlab="gender", ylab="Y",
ylim=c(5,30), conf.int=FALSE)
If I convert gender into discrete numeric predictor, and use
forceLines=TRUE, plot is not nice and true, since it shows values
2009 May 27
1
Changing point color/character in qqmath
Having solved this problem, I am posting this so that the next time I search
for how to do this I will find an answer...
Using qqmath(..., groups=num) creates a separate qq distribution for each
group (within a panel). Using the 'col' or 'pch' argument does not
(usually) work because panel.qqmath sorts the data (but not 'col' or 'pch')
before plotting. Sorting
2006 Oct 11
1
panel-dependent distribution in qqmath
In qqmath, how would one go about having 'distribution' change with
panel.number? I've tried
set.seed(1)
mydata <- data.frame(ind = factor(rep(2:4, each = 100)))
mydata$val <- rt(300, df=rep(2:4, each = 100))
plot<-qqmath(~ val | ind,
layout=c(3,1),
data = mydata,
prepanel = function(x, distribution, ...) {
2012 May 15
1
Lattice: Add abline to Single Value qqmath() Plot
The data are not normally distributed when untransformed and I'm trying
various transformations to see if any would be appropriate to use. The
lattice book (fig. 3.10) shows a 2-sample Q-Q plot with an abline but the
code for the figure does not include the line.
I'd appreciate a pointer to a reference on how to add an abline to a
one-sample qqmath() plot in lattice.
Rich
2007 Mar 06
1
The plot of qqmath
Hello,
I would like to inlude the Q-Q plot by "qqmath" into a panel with other
plots, say, using par(mfrow=c(1,2)). How can this be done given that
"qqmath" refreshes the plotting window and there seems to be no series
coming out of it?
Thanks
Serguei
[[alternative HTML version deleted]]
2007 Jan 25
2
Unable to install gtkDevice ...
Hello!
I am trying to install gtkDevice package, but without success. It is
complaining about:
* Installing *source* package 'gtkDevice' ...
checking for gtk-config... no
checking for gtk12-config... no
ERROR: Cannot find gtk-config.
I am using Ubuntu 6.06, and I cannot find that package in the
repositories. Is there a remedy of any kind? What can I do?
Best,
Petar M.
2012 Apr 18
3
Installing texlive dependencies
Hello ALL!
I am running Fedora 16 x86_64. Due to some dubious problems, that i
couldn't resolve, with the TeXLive (2007, which is a default), I removed
it. That removed R as well, and some other dependent packages. Then, I
installed TeXLive 2011 from CTAN. However, when I wanted to install R,
from Fedora's repositories, it asks for some TeX dependencies (for
example, tex-preview,
2007 Jan 23
1
How to generate 'minor' ticks in lattice (qqmath)
Dear group,
I tried to generate labels for every second tick in lattice (qqmath).
Version: 0.14-16
Date: 2006/12/01
R version 2.4.1 (2006-12-18)
An example:
library(lattice)
numy=100
y=runif(numy,min=0,max=1)
sig=0.05
numsig=length(which(y<sig))
tck.no=11 # number of ticks
tcks=1:tck.no
labl=as.character(0.1*tcks-0.1) # label for all ticks
labl[seq(2,tck.no-1,2)]="" # delete
2006 Jan 24
1
Can’t find X11 font when trying to produce graph
I am using R 2.1.1 on i486-pc-gnu-linux (Ubuntu Breezy). Recently, I
bought new laptop HP nx8220 and installed Breezy with a few problems
starting X-Windows. Nevertheless, I followed some instruction, managed
to start X, and added R from the Ubuntu's repositories. When I try to
produce any graph (like plot, bwplot etc.), I receive an error
message:
can't find X11 font
Error in X11( ....
2009 Oct 09
1
subsetting key on qqmath
Dear R list,
The code below puts qq-plots for two of three groups on the one
plot. However the legend includes all three groups, ie the auto.key
ignores the subset instruction. Is there an easy way to get around
this, so that only those groups plotted are included in the legend?
y1<-rnorm(100); y2<-rnorm(100)+1; y3<-rnorm(100)+2; y<-c(y1,y2,y3)
2009 Sep 15
5
Very general question about Debian...
Hello ALL!
First, I apologize for sending question that spill-out from the scope of
this list. However, you might be essentially the best informants.
In brief, I am thinking to give second shot to the Debian. Currently I
am using Ubuntu 9.04, but Debian still teases me, so to say. I used to
use Debian testing (Lenny at that time), but when Lenny became stable,
things became very shaky in