Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Biplot.jl for PCA analysis #41

Closed
Iddingsite opened this issue Nov 28, 2023 · 2 comments
Closed

Compatibility with Biplot.jl for PCA analysis #41

Iddingsite opened this issue Nov 28, 2023 · 2 comments

Comments

@Iddingsite
Copy link

Hi!

I am trying to play around with this package in the ultimate goal to make a biplot after my log-ratio transformation. Biplot.jl is listed as a potential candidate to make the plotting part but I am struggling to make the link with the 2 packages. And I would also like to understand the benefit to work with CoDaArray compared to a Table from TableTransforms.jl (both packages are new for me). Is CoDaArray kinda useful only if I want to use operations on them?

Here is what I tried with a simple MWE:

table = (SiO2=[0.728,0.725,], TiO2=[0.005,0.005], Al2O3=[0.143, 0.145], Fe2O3=[0.032, 0.032], MnO=[0.001, 0.001], MgO=[0.010, 0.010], CaO=[0.018, 0.022], Na2O=[0.032, 0.034], K2O=[0.003, 0.027])

ctable = compose(table)

table_clr = ctable.coda |> CLR()
# or ctable_clr = clr.(ctable.coda)?

So at the end I am using TableTransforms.jl syntax. Which mean that I could also do a PCA which should be compatible with Biplot.jl?

table_clr_PCA = table_clr |> PCA()

But looking at the exemple on Biplot.jl, it seems to me that it is doing the transformation under the hood before the plotting. So I am a bit confused to what I should give Biplot.jl.

Don't hesitate to tell me if I should more ask the question on TableTransforms.jl or Biplot.jl!

@juliohm
Copy link
Member

juliohm commented Nov 28, 2023 via email

@juliohm juliohm closed this as completed Nov 28, 2023
@Iddingsite
Copy link
Author

Hey, thx a lot for the quick answer. I will look into all of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants