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

Comments

@Otoliths
Copy link

@Otoliths Otoliths commented Jun 10, 2018

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
Owner

@droglenc droglenc commented Jun 10, 2018

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

@Otoliths Otoliths commented Jun 10, 2018

Thank you for your kind consideration of this request!

@droglenc droglenc added the bug label Jun 10, 2018
@droglenc
Copy link
Owner

@droglenc droglenc commented Jun 10, 2018

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.

@droglenc droglenc closed this Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.