[R] help with the coordinates of the ECDF object
klebyn
klebyn at yahoo.com.br
Wed Nov 2 02:24:53 CET 2005
Hi all R users
I would like to know how acess the coordinates
of the ECDF object.
I look for the example,
in this part:
######################
print(ls.Fn12 <- ls(env= environment(Fn12)))
######################
but I do not know to extract
the Y coordinate and put it in other variable.
My objective is to make a plot
and identify the points with labels.
############# Example by ?ecdf
y <- round(rnorm(12),1); y[3] <- y[1]
Fn12 <- ecdf(y)
Fn12
print(knots(Fn12), dig=2)
12*Fn12(knots(Fn12)) ## ~= 1:12 if there were no ties
summary(Fn12)
summary.stepfun(Fn12)
print(ls.Fn12 <- ls(env= environment(Fn12)))
##[1] "f" "method" "n" "x" "y" "yleft" "yright"
############# Example by ?ecdf
My objetive seems to this:
plot(Fn12)
identify( x = knots(Fn12), y = ??????????, labels="my string set")
or text...
thanks in advanced
klebyn
More information about the R-help
mailing list