search for: qqmathline

Displaying 17 results from an estimated 17 matches for "qqmathline".

2012 May 17
3
New Eyes Needed to See Syntax Error
....R:15:1: unexpected symbol 14: 15: hco33 ^ The 'h' is in column 0 so the caret would be column -1, but it's presented as column 1. The file, bicarb.R is: hco31 <- qqmath(~ HCO3 | factor(basin), data = surfchem.cast, main = 'Bicarbonate (Raw)', prepanel = prepanel.qqmathline, panel = function(x, ...) { panel.qqmathline(x, ...) panel.qqmath(x, ...) }) hco32 <- qqmath(~ log10(HCO3 | factor(basin), data = surfchem.cast, main = 'Bicarbonate (Log10)', prepanel = prepanel.qqmathline, panel = function(x, ...) { panel.qqmathline(x, ...)...
2003 Oct 04
1
How to use panel.qqmathline?
Dear R users: How can I use panel.qqmathline, in package lattice, to add straight lines onto the plots generated by qqmath? I read help pages of qqmath, panel.qqmathline, xyplot, ..., but just can't one example that shows how to make it work. For example, > data(sleep) > qqnorm(~ extra | group, data=sleep, aspect=1) how can I us...
2006 Oct 11
1
panel-dependent distribution in qqmath
...h = 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, ...) { mydist<-function(p) qt(p, df = panel.number() + 1) prepanel.qqmathline(x, distribution=mydist,...) }, panel = function(x, distribution, ...) { mydist<-function(p) qt(p, df = panel.number() + 1) panel.qqmathline(x, distribution=mydist,...) panel.qqmath(x, distribution=mydist,...)...
2008 Aug 28
1
error in packet 1
...t find a solution for the error: "error using packet 1 the y field is not specified and it has not a default value" (this is my traslation from italian language) The code is: pc<- qqmath(~valori, distribution=function(p) qweibull(p,beta,alpha), prepanel = prepanel.qqmathline, panel = function(x, y) { panel.grid() panel.qqmathline(y, distribution = function(p) qweibull(p,beta,alpha)) panel.qqmath(x, y) }, layout = c( 1,1), aspect = 0.8, xlab = "Unit Weibull Quantile", ylab = "D&quot...
2008 Aug 28
1
"error using packet 1"
...t find a solution for the error: "error using packet 1 the y field is not specified and it has not a default value" (this is my traslation from italian language) The code is: pc<- qqmath(~valori, distribution=function(p) qweibull(p,beta,alpha), prepanel = prepanel.qqmathline, panel = function(x, y) { panel.grid() panel.qqmathline(y, distribution = function(p) qweibull(p,beta,alpha)) panel.qqmath(x, y) }, layout = c( 1,1), aspect = 0.8, xlab = "Unit Weibull Quantile", ylab = "D&quot...
2006 May 25
2
qqmath - Lattice error
...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) ,col=2) panel.qqmath(x, y , distribution=function(p) qt(p,df=20) ,pch=".",cex=2) } ) means. Espacially that this function call qqmath(...
2007 Sep 27
1
crashing R through lattice
...0, 1960, 1840, 2410, 1520, 1685, 43300, 32800, 28800, 34600, 27800, 32800,28100, 18900, 31400, 39500, 29000, 22300, 11000, 8600, 8260, 9830, 7600, 9650, 8900, 6060, 10200, 15500, 9250, 7900) qqmath(~count|species, distribution=qnorm, prepanel=prepanel.qqmathline, panel = function(x,...) { panel.grid() panel.qqmathline(x, ...) panel.qqmath(x, ...) }, aspect=1, layout=c(2,2),# where c=# of columns, R=Number of rows main=...
2007 Feb 09
1
How to add the variable name to a qqplot or densityplot in the diagonal of an splom?
...g like grid.text(x, ...) to the diagonal panel, but I don't know how to get it cycle through the column labels. And should varname.col = 'blue', varname.cex = 1 be inside the diag.panel() function? splom(szw[, n], pscales = 0, diag.panel = function(x, ...){ panel.qqmathline(x, ...) panel.qqmath(x, ...) }, lower.panel = function(x, y, ...){ panel.xyplot(x, y, ..., col = 'lightblue') panel.loess(x, y, ..., col = 'red') }, upper.panel = function(x, y, ...){ panel.abline(lm(y~x),...) grid.tex...
2005 Sep 28
1
Problem with memory footprint of qq plot generated with lattice
Dear R helpers, I generate a qq plot using the following function call. qqmath(~val|ind,data=xx ,distribution=function(p) qt(p,df=19) ,ylab="Sample Quatinles" ,xlab="Theoretical Quantiles" ,aspect=1 ,prepanel = prepanel.qqmathline ,panel=function(x,y) { panel.qqmathline(y, distribution=function(p) qt(p,df=19),col=2) panel.qqmath(x, y , distribution=function(p) qt(p,df=19),pch=".",cex=2) } ) dim(xx) [1] 680237 2 unique(xx[,1]) [1] 500-530 1000-1110 2000-2200 3400-3700...
2013 Jun 22
1
Superpose two QQ-plots (gamma distribution) with, lattice function qqmath()
...m the points: qqmath(~ x, data = dat, groups = gp, pch = 20, type = c("p","g"), distribution = function(x) qgamma(x,shape,rate), panel = function(x,groups,...) { panel.qqmath(x,groups, ...) panel.qqmathline(x,groups,...) }) Any hint? Thanks a lot for your help, Yvonnick
2011 Feb 04
0
switching y-axis to x-axis for qqmath
...would like to switch the axis and not sure how? Meaning I would like the "height" on the x-axis and the probability on the y-axis. Will you show me the correct syntax for this switch thanks. qqmath(~ height | voice.part, aspect = "xy", data = singer, prepanel = prepanel.qqmathline, scales = list(x = list(at = qnorm(c(0.001,0.01, 0.05, 0.25, 0.5, 0.75, 0.95,0.99, 0.999)), labels = c(0.001, 0.01,0.05, 0.25, 0.5, 0.75, 0.95, 0.99,0.999),alternating = 3), y = list(alternating = 3))) Chris Anderson Data Analyst Medical Affairs wk: 925-677-4870 cell: 707-315-8486 Fax...
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
2012 Jun 22
0
R 2.15.1 is released
...th vector, analogously to, say, +. o colorRamp() (and hence colorRampPalette()) now also works for the boundary case of just one color when the ramp is flat. o qqline() has new optional arguments distribution, probs and qtype, following the example of lattice's panel.qqmathline(). o .C() gains some protection against the misuse of character vector arguments. (An all too common error is to pass character(N), which initializes the elements to "", and then attempt to edit the strings in-place, sometimes forgetting to terminate them.) o...
2012 Jun 22
0
R 2.15.1 is released
...th vector, analogously to, say, +. o colorRamp() (and hence colorRampPalette()) now also works for the boundary case of just one color when the ramp is flat. o qqline() has new optional arguments distribution, probs and qtype, following the example of lattice's panel.qqmathline(). o .C() gains some protection against the misuse of character vector arguments. (An all too common error is to pass character(N), which initializes the elements to "", and then attempt to edit the strings in-place, sometimes forgetting to terminate them.) o...
2012 Oct 26
4
R 2.15.2 is released
...and for several recommended packages. o Multistratum MANOVA works. In fact, it seems to have done so for years in spite of the help page claiming it did not. o qqline() has new optional arguments distribution, probs and qtype, following the example of lattice's panel.qqmathline(). o The handling of single quotes in the en at quot pseudo-language has been slightly improved. Double quotes are no longer converted. o New functions checkPoFiles() and checkPoFile() have been added to the tools package to check for consistency of format strings in tr...
2012 Oct 26
4
R 2.15.2 is released
...and for several recommended packages. o Multistratum MANOVA works. In fact, it seems to have done so for years in spite of the help page claiming it did not. o qqline() has new optional arguments distribution, probs and qtype, following the example of lattice's panel.qqmathline(). o The handling of single quotes in the en at quot pseudo-language has been slightly improved. Double quotes are no longer converted. o New functions checkPoFiles() and checkPoFile() have been added to the tools package to check for consistency of format strings in tr...
2012 Oct 26
4
R 2.15.2 is released
...and for several recommended packages. o Multistratum MANOVA works. In fact, it seems to have done so for years in spite of the help page claiming it did not. o qqline() has new optional arguments distribution, probs and qtype, following the example of lattice's panel.qqmathline(). o The handling of single quotes in the en at quot pseudo-language has been slightly improved. Double quotes are no longer converted. o New functions checkPoFiles() and checkPoFile() have been added to the tools package to check for consistency of format strings in tr...