1

I tried to do "Principal components analysis" with Incanter today. What I don't have yet, though, is an appropriate legend. I can add a legend, but it's only numbers instead of names. in this post from 2010 they show how Incanter keeps the column titles after doing to-matrix, but this seems to have changed, and it doesn't work without using to-matrix.

How can I get a different legend?

Daniel Ziltener
  • 647
  • 1
  • 6
  • 21
  • 1
    Please post some code so that we can see what you are doing and work from there. – juan.facorro Sep 21 '13 at 14:04
  • Just get rid of `to-matrix` in the call of `get-dataset` - matrices are simple matrices, without column titles - use datasets if you want to have ones. I plan to go over the blog, and fix examples (some day)... – Alex Ott Sep 22 '13 at 09:08
  • If I remove the `to-matrix` it fails at `(def pca (principal-components X))` at the blog example. – Daniel Ziltener Sep 22 '13 at 15:57
  • Yep, I've found this also - I'll try to fix this bug soon – Alex Ott Sep 23 '13 at 09:59

0 Answers0