Re: [R] ternary contour plot

2011-02-15 Thread Walmes Marques Zeviani
- # draw an arrow with the coordinates extracted arrows(id$x[1], id$y[1], id$x[2], id$y[2]) #-- At your disposal. Walmes. ======== Walme

Re: [R] Is possible a mini-plot into a big plot with Lattice?

2010-05-26 Thread Walmes Marques Zeviani
> Hi > > On 27/05/2010 8:09 a.m., Walmes Marques Zeviani wrote: > > > > Hello, > > > > I want to do with Lattice functions (qqmath, histogram) a figure like this > > below. > > n<- 1000 > > x<- rnorm(n) > > qqnorm(x); qqline(x) > &g

[R] Is possible a mini-plot into a big plot with Lattice?

2010-05-26 Thread Walmes Marques Zeviani
Hello, I want to do with Lattice functions (qqmath, histogram) a figure like this below. n <- 1000 x <- rnorm(n) qqnorm(x); qqline(x) op <- par(fig=c(.02,.5,.5,.98), new=TRUE) hist(x, xlab="", ylab="", main="", axes=FALSE) box() par(op) Is possible? Thanks. Walmes Zeviani.

[R] R algorithm for maximum curvatures measures of nonlinear models

2010-03-05 Thread Walmes Marques Zeviani
Hi all, I'm looking for the algorithm to calculate maximum intrinsic and parameter effects curvature of Bates & Watts (1980). I have Bates & Watts (1980) original article, Bates et al (1983) article, Seber & Wild (1989) and Ratkowsky (1983) books. Those sources show steps and algorithm to get

[R] How get the single bar x coordinate in barchart when groups is used?

2010-02-20 Thread Walmes Marques Zeviani
Hi all, I am using barchart() to plot values above the bars. When using groups argument we get bars grouped arround a given x level. By placing values above this bars we need to know the respective x coordinates. How can I get it? require(lattice) da <- expand.grid(x=1:5, z=1:3, w=1:2) da$y <-

[R] How to provide a result from D(f(x), "x") to a curve(f'(x)) ???

2010-02-17 Thread Walmes Marques Zeviani
Hi all, I want to provide the result from D() to curve(), because I want to plot the k-th derivative of some functions. Actually, I copy from console the result given by D() and paste inside curve(). With a lot of functions and high degree differentiation this process is tedious. Can I provide