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

Data for figure 12-6 are missing #333

Open
RaymondBalise opened this issue Sep 21, 2022 · 3 comments
Open

Data for figure 12-6 are missing #333

RaymondBalise opened this issue Sep 21, 2022 · 3 comments

Comments

@RaymondBalise
Copy link
Contributor

RaymondBalise commented Sep 21, 2022

The code to make figure 12-6 starts with an object called sfd_grid. I searched the book repo and it is not defined. I loaded all the packages referenced in chapter 12 and the object is still not found. The only reference I can find to that object on the web is a blog post about Max's presentation at RStudio::Conf 2020. I can probably guestimate the values and add a tribble but the code also references a dataset called grid_contours which is missing. I don't think I can fake that without doing a lot of geometry/trigonometry.

Can you please point me to the data or share the code to make the missing objects?

@juliasilge
Copy link
Member

It is loaded via load("RData/search_examples.RData") so if you want to see or use the data, you could clone the repo and get it that way. I can't find the code that generates this either, though. Should we add that script to extras/ @topepo?

@RaymondBalise
Copy link
Contributor Author

RaymondBalise commented Sep 22, 2022

I am sorry but I don't see either sfd_grid or grid_contours in the RData folder. I tried cmd-shift-f search in the RStudio IDE and could not find them.

I do not think any other books cover the concepts of searching the parameter space in a friendly format. So I would love to use this for teaching and having the code for those figures would help me bring the example to life.

@juliasilge
Copy link
Member

The way to find it @RaymondBalise is to git clone the repo (or usethis::create_from_github("tidymodels/TMwR")), then open up the new local project. Once you are in the project locally, you can run in R load("RData/search_examples.RData") and then there will be three datasets in your environment. That .RData file holds three datasets related to the search examples. Doesn't get you to code to generate them, but you can see what they look like!

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