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_wham_output() missing variable yr.col #40

Open
tcarruth opened this issue Mar 16, 2021 · 2 comments
Open

Plot_wham_output() missing variable yr.col #40

tcarruth opened this issue Mar 16, 2021 · 2 comments

Comments

@tcarruth
Copy link

Line 187 of EGB_WHAM_tjm.R is:

plot_wham_output(mod=m1, out.type='html')

This returns the error:

Error in plot.xy(xy.coords(x, y), type = type, ...) :
object 'yr.col' not found

As a temporary fix this is solved by:

yr.col<<-rainbow(100,start=0.2,end=1) # FLAG github issue
plot_wham_output(mod=m1, out.type='html') # without yr.col definition this does not work

@brianstock-NOAA
Copy link
Contributor

Hi Tom,

This looks familiar, think I just fixed this: b8e7484. At least, I don't get the above error. Try re-installing the devel branch of WHAM:

devtools::install_github("timjmiller/wham", ref="devel", dependencies=TRUE)

Thanks for making it easy to check by creating the repo with saved fit model object!

@brianstock-NOAA
Copy link
Contributor

Hi Tom, I believe this is fixed. Can you install the new version we just released, try again, and either close this issue or post an error?

devtools::install_github("timjmiller/wham", dependencies=TRUE)

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