Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Could someone come up with R code to plot an ellipse from the eigenvalues and the eigenvectors of the following matrix

$\begin{equation*} \mathbf{A} = \left( \begin{array} {cc} 2.2 & 0.4\\ 0.4 & 2.8 \end{array} \right) \end{equation*}$


share|improve this question

closed as off topic by joriki, Ross Millikan, t.b., Qiaochu Yuan Apr 23 '11 at 20:15

Questions on Mathematics Stack Exchange are expected to relate to math within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

I voted to close as off-topic and migrate to stats.SE -- I think a request for code in a specific programming language for a task whose mathematical aspects are well-known is outside the scope of this site. @MYaseen208: Please don't view this as an action against you; I think the question will be better placed on that site. –  joriki Apr 23 '11 at 9:22
@joriki: MYaseen208 asked it there first –  Henry Apr 23 '11 at 12:34
I see. In that case, it would have been appropriate to mention that this is a cross-post and to provide the link. There seem to be two answers there already, so people are wasting their time here thinking this is an unanswered question. –  joriki Apr 23 '11 at 12:58

1 Answer 1

up vote 1 down vote accepted

You might want to play with something like

plot(ellipse(array(c(2.2, 0.4, 0.4, 2.8) , dim=c(2,2) ) ) , type="l" )


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.