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

consolidation of depth axis arguments / style in plotSPC #292

Merged
merged 23 commits into from
Aug 14, 2023

Conversation

dylanbeaudette
Copy link
Member

@dylanbeaudette dylanbeaudette commented Aug 7, 2023

Experimenting with a more modern depth axis for plotSPC() along with more options for customization. Changes will include new arguments and removal / deprecation of previous arguments. This could break some old code. Thinking about ways to ease the transition.

  • plot.depth.axis
  • n.depth.ticks
  • cex.depth.axis

TODO:

Reorganized NEWs and added commentary to "sketches" tutorial.

Also fixing #290.

@dylanbeaudette
Copy link
Member Author

Quick comparison of "compact" vs. "traditional" axis styles.
image
image

@dylanbeaudette
Copy link
Member Author

Need to account for NA horizon depths, currently failing all tests at if (any(y0 == y1))

@dylanbeaudette
Copy link
Member Author

@brownag I'm going to have to merge this soon. Happy to accept feedback on these topics when you return.

@dylanbeaudette
Copy link
Member Author

New comparison, this time with "tape" style. Still generalizing position, always a problem with base graphics.
demo

Copy link
Member

@brownag brownag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the few minor suggestions below, LGTM!

R/sketch-utils.R Show resolved Hide resolved
R/plotMultipleSPC.R Outdated Show resolved Hide resolved
R/plotMultipleSPC.R Outdated Show resolved Hide resolved
dylanbeaudette and others added 3 commits August 11, 2023 16:47
Co-authored-by: Andrew Gene Brown <andrew.g.brown@usda.gov>
Co-authored-by: Andrew Gene Brown <andrew.g.brown@usda.gov>
Co-authored-by: Andrew Gene Brown <andrew.g.brown@usda.gov>
@dylanbeaudette
Copy link
Member Author

Thanks @brownag for those suggestions! I've got a couple of tiny tweaks, and then ready to merge.

@dylanbeaudette
Copy link
Member Author

We can do a final vote on the default axis style just before CRAN release.

@dylanbeaudette dylanbeaudette merged commit 7e1ba49 into master Aug 14, 2023
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants