Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6151649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:47:57+00:00 2026-05-23T19:47:57+00:00

I’m drawing F1/F2 vowel graph ( an example is here ). Each vowel has

  • 0

I’m drawing F1/F2 vowel graph (an example is here). Each vowel has several points/values, and I’d like to draw an ellipse around the points, so that:

  • ellipse covers at least 80% of points (ie. in the picture above “i” has several values, but they are contained within the ellipse).
  • is positioned in the direction on min/max values.

I may be complicating the stuff, but trigonometry and maths are Greek to me. Below is what I’ve tried.

Ellipsoidhull()

Ellipsoidhull() is in the package package “cluster”. If I pass to a function a matrix with F1 and F2, it seems to calculate the center of the ellipse, but the directional values are huge. For example:

> olm
      ol.f1 ol.f2 # f1/f2 data
 [1,] 501.3 850.5
 [2,] 488.5 906.5
 [3,] 456.3 857.0
 [4,] 505.8 895.3
 [5,] 499.5 898.0
 [6,] 431.8 891.5
 [7,] 416.3 870.5
 [8,] 506.0 887.8
 [9,] 500.3 985.8
[10,] 513.5 955.3
[11,] 531.5 958.0
[12,] 483.0 847.3
[13,] 533.3 982.8
[14,] 480.8 881.8
[15,] 484.3 884.5

If passed to ellipsoidhull:

> ellipsoidhull(olm)
'ellipsoid' in 2 dimensions:
 center = ( 480.69 904.33 ); squared ave.radius d^2 =  2 
 and shape matrix =
       ol.f1  ol.f2
ol.f1 2115.5 1449.5
ol.f2 1449.5 3558.2
  hence, area  =  14636 

I guess it wouldn’t be hard to figure out how to draw an ellipse, but the “shape matrix” (max/min radius values?) is too high. Btw, thanks to #R on Freednode for the tips.

Source code from EMU-R

Then, I’ve taken a look into the code of EMU-R, R package that works with EMU that can, amongst other things, draw F1/F2 with ellipsoids. The code that seems to do that is here but I don’t understand how the ellipse is drawn.

Any help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:47:58+00:00Added an answer on May 23, 2026 at 7:47 pm
    require(car)
     x=rnorm(100)
     y=1+.3*x+.3*rnorm(100)
     dataEllipse(x,y, levels=0.80)
    

    So with your data:

    with(olm ,dataEllipse(ol.f1, ol.f2, levels=0.8) )
    

    Another package, mixtools, has similar capabilities but uses the alpha level rather than the 1-alpha:

     mu <- with(olm, c(mean(ol.f1), mean(ol.f2)) )
     sigma <- var(olm)  # returns a variance-covariance matrix.
     sigma
    #          ol.f1     ol.f2
    #ol.f1 1077.2098  865.9306
    #ol.f2  865.9306 2090.2021
    
    require(mixtools)
    #Loading required package: mixtools
    #Loading required package: boot
    # And you get a warning that ellipse from car is masked.
    
    ellipse(mu, sigma, alpha=0.2, npoints = 200, newplot = FALSE)
    

    Which would overlay the earlier plot with the new estimate (which is slightly narrower in this case.This is the comparison of the two methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.