[R] extracting characteristics of datasets from data()

2010-10-25 Thread Michael Friendly
dim(Mental) [1] 24 3 for all datasets in Item, giving a display like Item class dim Title Abortion table 2x2x2 Abortion Opinion Data Mentaldata.frame 24x2Mental impariment and parents SES -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] Orthogonalization with different inner products

2010-11-04 Thread Michael Friendly
[,j]=v[,j]-u } Thanks, Andrew [[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca

Re: [R] table with values as dots in increasing sizes

2010-11-06 Thread Michael Friendly
This is a tableplot, available on R-Forge at https://r-forge.r-project.org/projects/tableplot/ install.packages(tableplot, repos=http://R-Forge.R-project.org;) will install, as long as you are using R 2.12.x; otherwise, you'll have to download the source package and install from source.

Re: [R] About 5.1 Arrays

2010-11-07 Thread Michael Friendly
Hi Stephan Since early in November you have posted queries on R-help on 5 different topics as you are trying to learn to use R. This is a good thing, and many contributors to R-help have replied, taking pains to provide explanations and examples to be helpful. But, in return, it doesn't

Re: [R] 3-way interaction simple slopes

2010-11-07 Thread Michael Friendly
You would get more helpful replies if you indicated which among MONTHS, CEXPOSE.M and bf.m were factors vs. covariates, and for which factor or factors you wanted to test the simple slopes. You will find that linearHypothesis in the car package can test these things, and the effects package can

Re: [R] : unusual combinations of categorical data

2010-11-09 Thread Michael Friendly
in the null model. Fit the model with loglm() or glm(), and use vcd::mosaic() to visualize the outliers. HTH -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http

[R] printCoefmat() for a data.frame with factors

2010-11-19 Thread Michael Friendly
‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] How to produce glm graph

2010-11-21 Thread Michael Friendly
As others have noted, you can use predict() to get the fitted values and then plot them 'manually' using basic plotting functions in R. However, you will probably find it easier to use the effects package, which is designed for exactly this task. e.g., install.packages(effects) # if necessary

[R] return vector of element names for vector, matrix or array

2010-11-27 Thread Michael Friendly
(2,3,2)) dimnames(x3)=list(R=letters[1:2], C=LETTERS[1:3], L=tail(letters,2)) # wanted for this case: as.vector(outer(vecnames(x2), dimnames(x3)[[3]], paste, sep=':')) [1] a:A:y b:A:y a:B:y b:B:y a:C:y b:C:y a:A:z b:A:z a:B:z b:B:z a:C:z b:C:z -- Michael Friendly Email: friendly AT yorku DOT

Re: [R] return vector of element names for vector, matrix or array

2010-11-28 Thread Michael Friendly
= :) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-help@r

[R] R equivalent of Beaton's Sweep algorithm

2010-11-29 Thread Michael Friendly
http://adorio-research.org/wordpress/?p=262 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] R equivalent of Beaton's Sweep algorithm

2010-11-29 Thread Michael Friendly
Bingo-- that's it exactly. Thanks! On 11/29/2010 3:46 PM, Peter Ehlers wrote: On 2010-11-29 12:29, Michael Friendly wrote: I'm looking for an R equivalent of Beaton's (1964) Sweep algorithim for partial inversion of a matrix by pivoting. ... Check swp() in pkg:ggm. Peter Ehlers

[R] warning creating an as.array method in a package

2010-11-30 Thread Michael Friendly
figure out where this might have come from. Has anyone seen this before? Where might an S4 version of as.array be found? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

[R] Sweave: infelicities with lattice graphics

2010-07-15 Thread Michael Friendly
simplify this? Re-use of code chunks doesn't seem to apply here. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J

[R] par(uin) ?

2010-07-19 Thread Michael Friendly
, seg4) if (!right) bra - bra %*% diag(c(-1, 1)) bra - scale * bra %*% rot(-alpha) bra - bra %*% diag(c(1/ux, 1/uy)) bra - t(t(bra) + c(x1, y1)) bra } -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115

Re: [R] par(uin) ? / brace function

2010-07-20 Thread Michael Friendly
a look at that over the weekend. -Peter Ehlers On 2010-07-19 9:20, Michael Friendly wrote: I inherited a function written either for an older version of R or SPlus to draw a brace, {, in a graph. It uses par(uin) to determine the scaling of the quarter circles that make up segments of the brace

Re: [R] Contingency Table Analysis - specific cell to specific cell comparisons

2010-07-22 Thread Michael Friendly
in advance. Best, John -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] namespace? environment? how to manage functions?

2010-07-22 Thread Michael Friendly
into a environment .my.env - new.env() sys.source('c:/perf/bin/perfmon.r', envir=.my.env) attach(.my.env) Is there a way to do this directly in .Rprofile without sourcing from a separate file? I've looked at sys.source, but don't understand how it works. -- Michael Friendly Email: friendly

Re: [R] Marginal effects from interaction regression model

2010-07-26 Thread Michael Friendly
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736

[R] [R-pkgs] heplots 0.9-3 and candisc 0.5-18 released to CRAN

2010-07-29 Thread Michael Friendly
to select canonical dimension in plot(candisc(), which=) Version 0.5-18 (2010-7-27) o Fixed predictor.names problem with car_2.0-0 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street

[R] how to find non-ASCII characters in .Rd files?

2010-07-29 Thread Michael Friendly
or indicate what non-ASCII characters were found, so the only way I can easily find the offending characters is to copy the .Rd file to a linux machine and run od -c file.Rd |more What commands can I run in R against a .Rd file to locate such non-ASCII characters -- Michael Friendly Email

Re: [R] Collinearity in Moderated Multiple Regression

2010-08-04 Thread Michael Friendly
and provide commented, minimal, self-contained, reproducible code. David Winsemius, MD West Hartford, CT [[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416

[R] influence measures for multivariate linear models

2010-08-10 Thread Michael Friendly
for this case that I've missed, or does anyone have an interest in pursuing this topic? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca

Re: [R] Sweave: infelicities with lattice graphics

2010-09-12 Thread Michael Friendly
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115

Re: [R] Sweave: infelicities with lattice graphics

2010-09-12 Thread Michael Friendly
, Michael Friendly wrote: Just a follow-up on this thread, now with R 2.11.1. I was happy back then to use Deepayan's solution for this, under earlier R versions; but it now gives an error and the Sweave-generated .tex file no longer compiles. ortho-xyplot1-code, keep.source=TRUE, eval=FALSE

Re: [R] influence measures for multivariate linear models

2010-09-14 Thread Michael Friendly
na5.383479 2.096793 0.1940462 ss -0.345764 0.448199 -0.0725977 Warning message: In 1:n : numerical expression has 32 elements: only the first used So, how can I calculate leave-one-out coefficients (and other quantities) efficiently for mlm-s? -Michael -- Michael

[R] odds ratios for n-way tables: seeking an *apply-able method

2010-09-19 Thread Michael Friendly
-1.4351 0.4700 OR(HE2 - HairEyeColor[,,2]) Brown:Blue Blue:Hazel Hazel:Green Black:Brown 0.7230 0.4287 0.1881 Brown:Red -0.1634 0.1591 0.7282 Red:Blond 3.5993-2.5494 0.4700 -- Michael Friendly Email: friendly AT yorku DOT ca

[R] plyr: a*ply with functions that return matrices-- possible bug in aaply?

2010-10-03 Thread Michael Friendly
Replaced 408518185 118 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] plyr: a*ply with functions that return matrices-- possible bug in aaply?

2010-10-06 Thread Michael Friendly
16 Male 3253 10 , , Eye = Blue Hair Sex Black Brown Red Female 934 7 Male 1150 10 , , Eye = Hazel Hair Sex Black Brown Red Female 529 7 Male 1025 7 -- Michael Friendly Email: friendly AT yorku DOT ca

[R] R: Tools for thinking about data analysis and graphics

2010-10-06 Thread Michael Friendly
and function objects, (b) object-oriented methods (S3 S4); (c) function mapping over data with *apply methods and plyr. What other language features of R should be on this list? I would welcome suggestions (and brief illustrative examples). -Michael -- Michael Friendly Email: friendly

Re: [R] R: Tools for thinking about data analysis and graphics

2010-10-06 Thread Michael Friendly
to other aspects (plots, tables, etc.) is another important R feature of the type I'm considering. I would put this in the top 5! -Michael -- Michael Friendly Email: frien...@yorku.ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele

Re: [R] Multivariate Contrasts

2010-10-06 Thread Michael Friendly
On 10/6/2010 6:07 PM, Ali S wrote: Hi, I am interested in running multivariate contrasts from manova. Here is the code I have currently for a one-way Manova. I would like to run multivariate contrasts for the Year factor. Thanks! #Reduced model t14m1-manova(as.matrix(t14c[,4:10])~t14c$Year)

Re: [R] Poisson Regression

2010-10-14 Thread Michael Friendly
*. This is equivalent to gnm( lambda ~ -1 + Subject Row + Col, family=poisson) except that Subject parameters aren't estimated explicitly. See vignette(gnmOverview) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax

[R] plotting a set of discrete distributions

2009-10-08 Thread Michael Friendly
6 120 [7,] 7 618 [8,] 5 7 1 ... -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca

Re: [R] plotting a set of discrete distributions

2009-10-08 Thread Michael Friendly
Gabor Grothendieck wrote: Try this (possibly after scaling the rows or columns to 1): library(gplots) with(as.data.frame.table(as.matrix(jevons[-1])), balloonplot(Var1, Var2, Freq)) Thanks, Gabor -- That's not bad as a first cut; I can work with that. -- Michael Friendly Email

[R] Documenting related data sets

2009-10-23 Thread Michael Friendly
.RData / .rda file for them to be found by R CMD check. Is this correct, or is there some way to include them all in a Minard.RData, via save(Minard.troops, Minard.cities, Minard.temp, file=Minard.RData) -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology

[R] .Rprofile replacement function setwd() causing errors

2009-10-30 Thread Michael Friendly
? * Is there someway I can 'hide' my custom functions like cd(), short.path() so they don't appear in the global environment but are available in my R session? thanks -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736

[R] reshaping pairs of columns

2009-11-03 Thread Michael Friendly
, latI, longI, latJ, longJ, latK, longK, latL, longL), row.names = c(NA, 6L), class = data.frame) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS

[R] Weird errors with R CMD check/ggplot2 in examples: how to debug?

2009-11-04 Thread Michael Friendly
= direction, group = group)) Error in rename_aes(aes) : could not find function rename Calls: ggplot - ggplot.data.frame - inherits - aes - rename_aes Execution halted --- end 00check.log --- -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

[R] vignettes: .png graphics or pre-compiled .pdf

2009-11-13 Thread Michael Friendly
the choices of eps/pdf = {TRUE/FALSE}. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

Re: [R] vignettes: .png graphics or pre-compiled .pdf

2009-11-14 Thread Michael Friendly
State University 3211 Snedecor Hall, Ames, IA On Fri, Nov 13, 2009 at 10:02 AM, Michael Friendly frien...@yorku.ca wrote: In a package I'm working on there is a vignette with a number of graphs that result in huge .pdf files, so the .pdf for the vignette is around 17 Mb. If these graphs

[R] formatting dates in axis labels (ggplot2)

2009-11-14 Thread Michael Friendly
= factor(dt1), y=Deaths, fill = Cause)) + geom_bar(width = 1, position=identity, color=black) + scale_y_sqrt() cxc1 + coord_polar(start=3*pi/2) + opts(title=Causes of Mortality in the Army in the East) + xlab() -Michael -- Michael Friendly Email: frien...@yorku.ca Professor, Psychology

Re: [R] vignettes: .png graphics or pre-compiled .pdf

2009-11-18 Thread Michael Friendly
Achim Zeileis wrote: On Fri, 13 Nov 2009, Michael Friendly wrote: Alternatively, is there a way to generate .png graphs from the .Rnw file so that those are used in building the .pdf for the package? AFAICS, \SweaveOpts{} offers only the choices of eps/pdf = {TRUE/FALSE}. Yes, but you can

[R] Generating model formulas for all k-way terms

2010-04-13 Thread Michael Friendly
in formula I still don't understand how to manipulate formulas in functions. Can someone help? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS

Re: [R] Generating model formulas for all k-way terms

2010-04-13 Thread Michael Friendly
mod0 - update(mod, .~1) models - c(list(mod0), models) names(models) - paste(mod, 0:order, sep = .) class(models) - glmlist models } mods - Kway(Freq ~ A + B + C, data=df, family=poisson) Best wishes, Heather Michael Friendly wrote: For the vcdExtra package, I'm exploring

[R] [R-pkgs] vcdExtra 0.5-0 is released to CRAN

2010-04-15 Thread Michael Friendly
by the functions glmlist(), loglmlist() summarize() methods, Kway() for fitting all k-way glm() models, etc. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp

Re: [R] Exporting an rgl graph

2010-04-16 Thread Michael Friendly
for rgl. Any plans for this? One note: With Adobe Acrobat Pro 9.3.1, the U3D and PRC images display on screen, but do not print (replaced by the filename). Is this your experience too? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

[R] rgl: plane3d or abline() analog

2010-05-04 Thread Michael Friendly
this for rgl exists that I haven't found. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

Re: [R] rgl: plane3d or abline() analog

2010-05-04 Thread Michael Friendly
Duncan Murdoch wrote: On 04/05/2010 4:19 PM, David Winsemius wrote: On May 4, 2010, at 4:09 PM, Michael Friendly wrote: For use with rgl, I'm looking for a function to draw a plane in an rgl scene that would function sort of like abline(a, b) does in base graphics, where abline(0, 1

Re: [R] [R-pkgs] New package: `lavaan' for latent variable analysis (including structural equation modeling)

2010-05-24 Thread Michael Friendly
Hi Yves lavaan looks like a very nice package. From the tutorial introduction I see you create path diagrams for some of the models you describe. How did you do this? I don't see a function for this in the package. I know there is a path.diagram function in the sem package that uses dot to

[R] extracat , JGR, iWidgets install problems

2010-05-26 Thread Michael Friendly
graphics grDevices utils datasets methods [8] base other attached packages: [1] extracat_1.0-1 MASS_7.3-6 reshape_0.8.3 plyr_0.1.9 loaded via a namespace (and not attached): [1] tools_2.10.1 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept

Re: [R] Repeated Measures Analysis - GLM

2009-12-14 Thread Michael Friendly
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele

Re: [R] Creating bibtex file of all installed packages?

2009-12-15 Thread Michael Friendly
.bib file writeLines(do.call(c, lapply(b, as.character)), Rpackages.bib) hth, Z -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html

[R] poly() with unnormalized values

2009-12-17 Thread Michael Friendly
(,coefs)$norm2 [1] 1.000 3.000 2.000 0.667 attr(,class) [1] poly matrix I've read the code for poly(), but $alpha and $norm2 are undocumented, and I still still can't see the inverse transformation -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor

[R] Sweave: font problems with Signif. codes lines

2009-12-22 Thread Michael Friendly
} \usepackage{bm} Does this ring a bell for anyone? thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3

Re: [R] Sweave: font problems with Signif. codes lines

2009-12-22 Thread Michael Friendly
Prof Brian Ripley wrote: On Tue, 22 Dec 2009, Michael Friendly wrote: [Environment: Win Xp, Miktex 2.7, R 2.9.2] If you want to set R output in a TeX font that (as most are) is very limited in its coverage, try options(useFancyQuotes = FALSE). Perfect, and all I need! Thanks so much

Re: [R] Building static HTML help pages in R 2.10.x on Windows

2010-01-07 Thread Michael Friendly
the change in help is a step back. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

[R] example() leaves console prompting to press Enter for new graphs

2010-01-11 Thread Michael Friendly
- options(device.ask.default = TRUE) on.exit(options(op), add = TRUE) } ... So, how can I restore the previous state of plotting w/out prompting? -- Michael Friendly Email: frien...@yorku.ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736

[R] Rprofile: distinguish between Rgui, Rterm, JGR?

2010-05-27 Thread Michael Friendly
[Environment: Win XP, R 2.10.1] In my Rprofile I have startup code to do various things, intended for when I use the Rgui console. Some of these are causing problems in JGR now that I've installed it. How can I test for R running with Rgui to do some of these things only there? -- Michael

Re: [R] Rprofile: distinguish between Rgui, Rterm, JGR?

2010-05-27 Thread Michael Friendly
Duncan Murdoch wrote: Michael Friendly wrote: [Environment: Win XP, R 2.10.1] In my Rprofile I have startup code to do various things, intended for when I use the Rgui console. Some of these are causing problems in JGR now that I've installed it. How can I test for R running with Rgui

Re: [R] MANOVA proportion of variance explained

2010-06-16 Thread Michael Friendly
[[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] MANOVA proportion of variance explained

2010-06-21 Thread Michael Friendly
-of-insects.blogspot.com -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street Web: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] xyplot: adding pooled regression lines to a paneled type=r plot

2010-06-22 Thread Michael Friendly
- lme(distance ~ age * Sex, data=Orthodont, random = ~ 1 + age | Subject, correlation = corAR1 (form = ~ 1 | Subject)) TIA, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814

Re: [R] xyplot: adding pooled regression lines to a paneled type=r plot

2010-06-23 Thread Michael Friendly
= grid) : Cannot evaluate groups for desired levels on newdata Deepayan Sarkar wrote: On Tue, Jun 22, 2010 at 9:30 AM, Michael Friendly frien...@yorku.ca wrote: Consider the following plot that shows separate regression lines ~ age for each subject in the Pothoff-Roy Orthodont data

Re: [R] xyplot: adding pooled regression lines to a paneled type=r plot

2010-06-24 Thread Michael Friendly
)) panel.lmline(x, y, ..., lwd = 3, col = 'red') }) Perfectly. Thanks to you and to Deepayan for the help on this. HTH, Dennis On Wed, Jun 23, 2010 at 11:05 AM, Michael Friendly frien...@yorku.ca mailto:frien...@yorku.ca wrote: Thanks, Deepayan I read your

[R] xyplot: key inside the plot region / lme: confidence bands for predicted

2010-07-02 Thread Michael Friendly
, level=0)) xyplot(distance ~ age, data=fm.mix1, groups=Sex, type=b, pch=c(15,16), cex=1.2, auto.key=list(text=c(Male, Female), points = TRUE, x=8, y=26), main=Linear mixed model: predicted growth) Can someone help? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] Gray level mosaic plot with shading_Friendly

2010-07-06 Thread Michael Friendly
Michael Kubovy wrote: Suppose we start with data(Titanic) mosaic(Titanic, shade = TRUE) How do I combine the dashed box contours of shading_Friendly to indicate negative residuals, with three levels of gray: dark for abs(Pearson Resid) 4, lighter for 4 abs(Pearson Resid) 2, and lightest

Re: [R] Visualization of coefficients

2010-07-07 Thread Michael Friendly
in the example. @Achim: It would be worthwhile combining the generality of your version with the overlay capability of the arm version, which is extremely useful for model comparison. However, the arm version uses S4 methods. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] xyplot: key inside the plot region / lme: confidence bands for predicted

2010-07-07 Thread Michael Friendly
Within-group standard error: lowerest. upper 1.07081 1.31004 1.60272 Peter Ehlers wrote: On 2010-07-02 9:37, Michael Friendly wrote: I have two questions related to plotting predicted values for a linear mixed model using xyplot: 1: With a groups= argument, I can't seem to get the key

Re: [R] Boxplots over a Scatterplot

2010-07-07 Thread Michael Friendly
Try scatterplot() in the car package. It draws boxplots for X Y in the margins, auto scaled to the axes fsch wrote: Hello- I'm new to R, coding and stats. (Oh no.) Anyway, I have about 12000 data points in a data.frame (dealing with dimensions and geological stage information for fossil

[R] transposing a list of vectors

2010-01-15 Thread Michael Friendly
of 4 ..$ shape: num 2 ..$ cell.fill: chr green ..$ back.fill: chr white ..$ scale.max: num 3 How can I do this in general? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street

Re: [R] transposing a list of vectors

2010-01-15 Thread Michael Friendly
) lapply(split(x - as.data.frame(testlist), 1:nrow(x)), as.list) On Fri, Jan 15, 2010 at 11:09 AM, Michael Friendly frien...@yorku.ca wrote: I have a list of vectors, all forced to be the same length: testlist - list( shape=c(0, 0, 2), cell.fill=c(red,blue,green), back.fill=rep(white,3

Re: [R] [R-pkgs] GGally - Plot Matrix Extension for GGplot2

2010-01-22 Thread Michael Friendly
Barret Schloerke wrote: GGally: a companion to GGplot2. Where is it available? I don't find it on CRAN or R-Forge -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp

[R] color palette for points, lines, text / interactive Rcolorpicker?

2010-01-28 Thread Michael Friendly
() indices are returned by the function. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

Re: [R] detect brightness of hex color value in R / convert from hex to hsl/hsv space how?

2010-01-29 Thread Michael Friendly
Heckmann Dipl. Wirt.-Ing. cand. Psych. Vorstraße 93 B01 28359 Bremen Blog: www.markheckmann.de R-Blog: http://ryouready.wordpress.com [[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice

Re: [R] color palette for points, lines, text / interactive Rcolorpicker?

2010-01-29 Thread Michael Friendly
, -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA __ R-help@r

[R] help in R 2.9.x for R 2.10.x packages

2010-01-29 Thread Michael Friendly
\TeachingDemos\html contains only 00Index.html. All the links therein are to .html files in the same directory, so of course are wrong. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele

[R] hiding/protecting utility functions in .Rprofile

2010-02-01 Thread Michael Friendly
[Env: WinXp, R 2.9.2] In my .Rprofile, I define a number of utility functions I'd like to have available in my R session, but don't want them to be *normally* listed by ls(), or more importantly, saved if I save my session variables/functions. How can I do this? -- Michael Friendly Email

[R] heplot3d / rgl : example causes R GUI to crash

2010-02-10 Thread Michael Friendly
] stats graphics grDevices utils datasets methods base other attached packages: [1] rgl_0.89 heplots_0.8-11 car_1.2-16 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp

Re: [R] heplot3d / rgl : example causes R GUI to crash

2010-02-10 Thread Michael Friendly
Duncan Murdoch wrote: On 10/02/2010 9:33 AM, Michael Friendly wrote: [Env: Tested under Win Xp, R 2.9.2 and R 2.10.1; sessionInfo() at end] This is probably a bug in rgl, and I can reproduce it. Bugs in contributed packages are best sent to the maintainer of the package, because

Re: [R] heplot3d / rgl : example causes R GUI to crash

2010-02-12 Thread Michael Friendly
), hypotheses=ContourSlope) should have supplied a named list for hypotheses: heplot3d(soils.mod, variables=c(Mg, Ca, Na), hypotheses=list(C1=ContourSlope)) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249

Re: [R] Graphics and LaTeX documents with the same font [double-Y-axis graphs]

2007-09-29 Thread Michael Friendly
hadley wickham wrote: On 9/29/07, hadley wickham [EMAIL PROTECTED] wrote: On 9/29/07, Michael Friendly [EMAIL PROTECTED] wrote: hadley wickham wrote: I was interested to see that you have code for drawing scatterplots with multiple y-axes. As far as I know the only legitimate use

[R] resetting par() to all defaults: par(reset=TRUE) ?

2007-09-29 Thread Michael Friendly
because it's one more thing to update with each new version.] -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT

Re: [R] Tart charts

2007-10-06 Thread Michael Friendly
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Michael Friendly

Re: [R] [OT] normal (as in Guassian)

2008-03-04 Thread Michael Friendly
, indeed. Stigler himself attributes the idea to Robert Merton, and cites his title, 'Stigler's Law of Eponomy' as a perfect example. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele

[R] reading and frequency analysis of Spanish text

2009-08-05 Thread Michael Friendly
/Langren/Verdadera-spanish-stripped.doc; langren.txt - scan(langren.sp.file, encoding=latin1) Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : scan() expected 'a real', got 'ÐÏࡱá' Can someone help? -- Michael Friendly Email: friendly AT yorku DOT ca

[R] installing R packages in a networked lab?

2008-08-08 Thread Michael Friendly
want, copy them to a folder on the server, and tell them A. start R, and from the R Console, choose Packages - Install packages from local zip file(s)... B. select all, OK, have a coffee. what is most likely to be fool-proof? thanks, -Michael -- Michael Friendly Email: friendly

[R] how to override/replace a function in a package namespace?

2008-08-17 Thread Michael Friendly
come up before, but searching the usual sources hasn't turned up anything useful. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS

Re: [R] how to override/replace a function in a package namespace?

2008-08-17 Thread Michael Friendly
Thanks, Gabor For the record, what I was looking for is accomplished by source(c:/R/mosaics/strucplot-MF.R) assignInNamespace(strucplot,strucplot, ns=vcd) -Michael Gabor Grothendieck wrote: Check out: ?assignInNamespace On Sun, Aug 17, 2008 at 12:42 PM, Michael Friendly [EMAIL PROTECTED

Re: [R] Upgrading R means I lose my packages

2008-08-28 Thread Michael Friendly
) #in the old version to get a list of packages you installed. Then in the #new version, load(c:/R/installed.rda) install.packages(installedpkgs) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814

[R] how to read multiple lines per case

2008-09-01 Thread Michael Friendly
22.821 1045.15 1674.36 3966.08 25072.9 49.1538 17.3128 4.09487 82.256 The complete data is at: http://www.math.yorku.ca/SCS/viscollin/data/linthall.dat thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115

[R] test if all predictors in a glm object are factors

2008-09-03 Thread Michael Friendly
this is a keeper. Can someone help me improve on the following is.discrete.glm() function. It works for mod.glm, but isn't very general ;-) is.discrete.glm - function(model) { TRUE } -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416

[R] rgl: plot3d and ellipse3d

2008-09-17 Thread Michael Friendly
) %*% PC$loadings for (j in 1:3) { mat - rbind(mu, vec[j,]) segments3d(mat, col=red) } Can someone help? thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street

Re: [R] rgl: plot3d and ellipse3d

2008-09-17 Thread Michael Friendly
the original axes, the points labels axes x, y, z plot3d( ellipse3d(cov, centre=mu, level=0.68, box=FALSE, col=pink, alpha=0.2, add = TRUE, axes=FALSE)) -Michael On Wed, Sep 17, 2008 at 8:34 PM, Michael Friendly [EMAIL PROTECTED] wrote: Hi I'm trying to make a 3d plot showing a point cloud

[R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
, 1:384] 1 195 99 196 51 197 99 195 27 198 ... $ primitivetype: chr quad $ homogeneous : logi TRUE $ material : list() $ normals : num [1:4, 1:386] 0.290 -0.902 -0.320 1.000 0.635 ... - attr(*, class)= chr qmesh3d -Michael -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA __ R-help@r

Re: [R] rgl: ellipse3d with axes

2008-09-24 Thread Michael Friendly
Murdoch -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

Re: [R] R Map using SAS data

2008-09-25 Thread Michael Friendly
_ -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html Toronto, ONT M3J 1P3 CANADA

Re: [R] candisc() error message

2008-06-16 Thread Michael Friendly
this helps, -Michael John Fox wrote: Dear Tanya, If I follow correctly what you're trying to do, you're in effect doing a one-way MANOVA of 17 response variables on a six-level factor, with only 20 observations. That's not enough data. I'm copying to Michael Friendly in case he hasn't seen your posting

Re: [R] extracting elements from print object of Manova()

2008-07-16 Thread Michael Friendly
any attempt at calling the headers in the MANOVA table. Any thoughts? Mike -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html

  1   2   3   4   5   >