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

- Add plot_time_var argument to autoplot() for 3D plotting #197

Merged
merged 7 commits into from
Jun 8, 2022

Conversation

pat-s
Copy link
Member

@pat-s pat-s commented Jun 3, 2022

Applies to the use case of partitioning by space only but plotting 3D (which requires a time variable).
This PR allows for this via column role "plot".

@be-marc Should be rename the role to "plot_time"? Otherwise we might eventually get conflicts with other plotting functions elsewhere?

I also used a subset of the cookfarm task only for the plotting tests as otherwise the SVG files become too large.

@pat-s pat-s requested a review from be-marc June 3, 2022 13:22
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2022

Codecov Report

Merging #197 (fc40c63) into main (4ea6422) will decrease coverage by 0.16%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main     #197      +/-   ##
==========================================
- Coverage   79.63%   79.46%   -0.17%     
==========================================
  Files          28       28              
  Lines        2283     2289       +6     
==========================================
+ Hits         1818     1819       +1     
- Misses        465      470       +5     
Impacted Files Coverage Δ
R/helper_autoplot.R 93.10% <ø> (-0.45%) ⬇️
R/TaskRegrST.R 87.50% <44.44%> (-9.94%) ⬇️
R/autoplot_spcv_cstf.R 80.39% <84.61%> (+0.39%) ⬆️
R/ResamplingSptCVCstf.R 96.92% <100.00%> (ø)
R/autoplot.R 53.20% <100.00%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b04e1e...fc40c63. Read the comment docs.

@pat-s pat-s changed the title Use "plot" column role for 3D plotting Add plot_time_var argument to autoplot() for 3D plotting Jun 8, 2022
@pat-s pat-s changed the title Add plot_time_var argument to autoplot() for 3D plotting - Add plot_time_var argument to autoplot() for 3D plotting Jun 8, 2022
@pat-s pat-s merged commit ebcfb06 into main Jun 8, 2022
@pat-s pat-s deleted the plot-col-role branch June 8, 2022 21:07
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