[R] ploting an ellipse keeps giving errors

Petr Pikal petr.pikal at precheza.cz
Wed Oct 27 11:14:20 CEST 2004


Hi

Did you read what ellipse does and how it shall be used?

And what about your system, R and ellipse version?

>From your example i got

> ellipse (center = c(0,0), shape = shape1, radius = 1)
Error in ellipse.default(center = c(0, 0), shape = shape1, radius = 
1) : 
        Argument "x" is missing, with no default

Ellipse is not for drawing arbitrary ellipses but has different usage.

See its help page and an example.

Cheers
Petr




On 27 Oct 2004 at 3:34, Sun wrote:

> 
> library (ellipse)
> 
> shape1 = c (1, 0, 0,1)
> dim(shape1) = c(2,2)
> ellipse (center = c(0,0), shape = shape1, radius = 1)
> 
> =============================
> Error in plot.xy(xy.coords(x, y), type = type, col = col, lty = lty,
> ...) : 
>         plot.new has not been called yet
> 
> 
> It is really frustrating. Also what do the shape matrix, radius
> correspond to an ellipse function
> 
> (x-x0)^2/a + (y-y0)^2/b = 1
> 
> ? Please advise!
> 
> Many thanks,
> 
> Sun
>  [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list