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,
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
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)
##
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
4 matches
Mail list logo