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

Error in FUN(X[[i]], ...) : object 'pos' not found in showDigitizedImage() #12

Closed
Otoliths opened this issue Jun 10, 2018 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Otoliths
Copy link

library(RFishBC)
#Measure Radii
digitizeRadii("Oto.jpg",

  •           id = "Oto",
    
  •           reading = "DHO",
    
  •           description = "Used to demonstrate use of scale-bar.",
    
  •           scaleBar = TRUE,
    
  •           scaleBarLength = 0.1,# this image had a 1-mm scale-bar
    
  •           edgeIsAnnulus = F)
    

✔ Loaded the Oto.jpg image.

☰ Select the endpoints of the scale-bar.
Press 'f' when finished, 'd' to delete selection.
✔ Found scaling factor from the selected scale-bar.

☰ Select the FOCUS (center) and MARGIN (edge) of the structure.
Press 'f' when finished, 'd' to delete selection.
✔ Transect selected and shown on image.

☰ Select points that are annuli.
Press 'f' when finished, 'd' to delete selection.
✔ 6 points were selected.

✔ Results written to Oto_DHO.rds

#Data from One Structure
combineData("Oto_DHO.rds")
id reading agecap ann rad radcap
1 Oto DHO 4 1 0.05653221 0.2061728
2 Oto DHO 4 2 0.10065765 0.2061728
3 Oto DHO 4 3 0.13284496 0.2061728
4 Oto DHO 4 4 0.16040859 0.2061728
combineData("Oto_DHO.rds",outFormat = "wide")
id reading agecap radcap rad1 rad2 rad3 rad4
1 Oto DHO 4 0.2061728 0.05653221 0.1006576 0.132845 0.1604086
#Visualize One Set of Annuli
showDigitizedImage("Oto_DHO.rds",

  •                pch.show = "+",
    
  •                col.show = "blue",
    
  •                col.transect = "white",
    
  •                col.ann = "black",
    
  •                cex.ann = 1,
    
  •                annuliLabels = 1:4,
    
  •                lwd.transect = 2)
    

Error in FUN(X[[i]], ...) : object 'pos' not found

@droglenc droglenc self-assigned this Jun 10, 2018
@droglenc
Copy link
Contributor

Can you please send me your Oto.jpg file and also the Oto_DHO.rds file saved in the same directory? I will see if I can troubleshoot from there. Please send to derek [at] derekogle.com.

@Otoliths
Copy link
Author

Thank you for your kind consideration of this request!

@droglenc droglenc added the bug Something isn't working label Jun 10, 2018
@droglenc
Copy link
Contributor

This was a bug in how I found the position of the labels relative to the points. This is addressed in the development version and will be in v0.0.10 when released.

Thank you for bringing this error to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants