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

Creating steps (instructions) to build mosaics #6

Open
rpodcast opened this issue Mar 16, 2019 · 0 comments
Open

Creating steps (instructions) to build mosaics #6

rpodcast opened this issue Mar 16, 2019 · 0 comments

Comments

@rpodcast
Copy link

One of my bigger future ideas for shinyLEGO is to let the user download a set of instructions they can use to build the mosaic after they select their desired number of steps. The UI in my current version lets the user view the individual steps. I created some utility functions and updated existing functions in the backend inspired by your previous posts to facilitate step creation. Would you be open to me contributing this functionality to brickr? Or did you have that already in the works? I'm sure I would need to do a bit of refactoring to make it compatible with brickr. Here are links for more info:

  • generate_steps: Creates a tidy data frame with the bricks required at a specified number of steps. This is very much similar to your earlier function. Uses the Img_bricks data frame as input.
  • step_pieces: Generate a tidy data frame with pieces required at each step (uses data frame produced by generate_steps() as input). Optionally it can simply have a specific step number and it will only return the pieces needed for that step.
  • plot_instructions: Very similar to your previous version, but it takes the output from generate_steps() as input and either prints instructions for all steps or for a specified step number.
  • table_pieces: Very similar to your earlier version but allows for summarizing a particular step if specified.
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

1 participant