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

plot.extendedPHT inaccessible and not working #3

Open
mattbivi opened this issue Nov 9, 2023 · 1 comment
Open

plot.extendedPHT inaccessible and not working #3

mattbivi opened this issue Nov 9, 2023 · 1 comment

Comments

@mattbivi
Copy link

mattbivi commented Nov 9, 2023

Hi James,

I just had a shot at running your code in R and I'm hitting a small stumbling block - I can't get your plot.extendedPHT working.

It isn't accessible directly after installation, which I managed to work around by importing it as a function, and then it doesn't get past line 51, citing incorrect number of dimensions.

I gave it a shot trying to sort it out it myself, but I'm not so familiar with R.

The rest has worked without much of a hitch, except that I put in a big image (~4000x2000) and I gave up waiting after 30 mins, but after some resizing it worked a treat.

Many thanks for the hard work,
Matt

@robinsv
Copy link
Collaborator

robinsv commented Nov 23, 2023

Hi Matt, I'm a complete R programming novice, but helped develop the ideas behind the package. I found that following steps described in "doc/getting-started.Rmd" in particular a command such as

plot(xphtA[[1]], main = "Extended Persistence of A\nin Direction pi/4")
legend("bottomright", legend=c("Ord0", "Rel1", "Ess0", "Ess1"), col = getDefaultColours(), pch = 15:18)

generated the extended persistence diagram while the following gives a barcode.

plot(xphtA[[1]], barcode = TRUE, main = "Extended Persistence Barcode of A\nin Direction pi/4")
legend("topright", inset=c(-0.3,0), legend=c("Ord0", "Rel1", "Ess0", "Ess1"), lty = c(1,1,1,1), col = getDef

Hope that helps!

Vanessa

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