[R] passing "..." arguments to (plot.ca)

2012-01-22 Thread Ian Robertson
I am hoping someone can give me a couple of pointers on how to pass arguments using "..."--in this specific case in an attempt to plot an object created by ca(), a tool for correspondence analysis. #some illustrative code library(ca) set.seed(123) dat1 <- data.frame(matrix(ceiling(runif(30, 1,

Re: [R] Scatter plot - using colour to group points?

2011-11-23 Thread Ian Robertson
Hello all, Yesterday I wrote Michael Weylandt to ask for some help in understanding a line of code he used responding to SarahH's query about controlling colours in scatter plots. He wrote an excellent explanation that deserves to be shared here. Below I include the code I wrote while experim

Re: [R] Problem plotting output from tree()

2009-11-13 Thread Ian Robertson
object s1 <- nchar(mdl1$frame$splits[, 1]) > 0 sp1 <- mdl1$frame$splits[s1, 1] mdl1$frame$splits[s1, 1] <- paste("<", round(as.numeric(substr(sp1, 2, nchar(sp1))), 2), sep="") #(better) output plot(mdl1); text(mdl1, cex=.6) ##

[R] Problem plotting output from tree()

2009-11-13 Thread Ian Robertson
ot(mdl1); text(mdl1, cex=.6) plot(mdl1); text(mdl1, cex=.6, digits=2) #no change to labelling #help! ?text.tree Can anyone spot my error? Many thanks for any help. Ian Robertson __ R-help@r-pro