[R] Plotting LDA results
matthias.eder at dlr.de
Wed Jul 25 13:52:58 CEST 2012
I think I still have some problems in understanding LDA and the methods of
plotting the results.
The case is the following: I'm having a dataset containing two classes where
each datapoint has 19 dimensions. Training with lda(...) works fine, and I'm
getting 19 LD coefficients. So far so good. Now I want to visualize the
result, and here is where my simple knowledge ends. What I simply want to do
is doing a scatterplot on two dimensions and then plotting the projected
hyperplane in order to see the dividing line. The scatterplot I'm doing with
but now I face with the problem of determining the intercept for abline(...)
(the slope should be -LD/LD I think...).
What I really don't understand is the result of plot.lda(...). As a result
it gives two histograms, each one for one class. So which distributions are
shown there? And why does it only plot a scatterplot when I have three
Thank you very much in advance!
View this message in context: http://r.789695.n4.nabble.com/Plotting-LDA-results-tp4637766.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help