hi

in base of your guide to solve my problem in how can draw line in
correlation i have done these steps,rank (x,y),plot (x,y) and introduce
graphics and done abline but unfortunately i revise mis message again:

> cor.test(SiO4,density,method="spearman")

        Spearman's rank correlation rho

data:  SiO4 and density

S = 5263.445, p-value = 0.1184

alternative hypothesis: true rho is not equal to 0

sample estimates:

      rho

-0.296415

Warning message:

In cor.test.default(SiO4, density, method = "spearman") :

  Cannot compute exact p-values with ties

> x<-rank(SiO4)

> y<-rank(density)

> plot(x,y)

> local({pkg <- select.list(sort(.packages(all.available =
TRUE)),graphics=TRUE)

+ if(nchar(pkg)) library(pkg, character.only=TRUE)})

> lm(y~x)

Call:

lm(formula = y ~ x)

Coefficients:

(Intercept)            x

    19.4479      -0.2965

> abline(lm(y~x))

Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :

  plot.new has not been called yet


but it was non successful, please help me

-- 
Mahnaz
Senior expert of marine ecology
Iranian Fisheries Research Organization (IFRO)
P.O.Box: 14155-6116 , P.Code: 1411816618*
Tehran, IRAN
Phone:   +98 21 44580953
Fax:       +98 21 44580583
Mobile:  +98 912 5790377

	[[alternative HTML version deleted]]

