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

Fix tcplPlot bug when compare.val is set and number of plots is greater than 1 #305

Closed
wants to merge 1 commit into from

Conversation

HendricksJudy
Copy link

Fixes #280

Add condition to handle compare.val with multiple plots in tcplPlot function.

  • R/tcplPlot.R

    • Add a condition to check if compare.val is set and the number of plots is greater than 1.
    • Modify the if condition to handle the case when compare.val is set and the number of plots is greater than 1.
    • Ensure that the function does not produce an error when compare.val is set and the number of plots is greater than 1.
  • tests/testthat/test-plotting.R

    • Add a test case to check if tcplPlot handles the case when compare.val is set and the number of plots is greater than 1.
    • Ensure that the test case verifies that the function does not produce an error in this scenario.
    • Add a test case to check if tcplPlot handles the case when compare.val is set and the number of plots is greater than 1 with type set to 'sc'.

…er than 1

Fixes USEPA#280

Add condition to handle `compare.val` with multiple plots in `tcplPlot` function.

* **R/tcplPlot.R**
  - Add a condition to check if `compare.val` is set and the number of plots is greater than 1.
  - Modify the `if` condition to handle the case when `compare.val` is set and the number of plots is greater than 1.
  - Ensure that the function does not produce an error when `compare.val` is set and the number of plots is greater than 1.

* **tests/testthat/test-plotting.R**
  - Add a test case to check if `tcplPlot` handles the case when `compare.val` is set and the number of plots is greater than 1.
  - Ensure that the test case verifies that the function does not produce an error in this scenario.
  - Add a test case to check if `tcplPlot` handles the case when `compare.val` is set and the number of plots is greater than 1 with `type` set to 'sc'.
@brown-jason
Copy link
Collaborator

This does not fix the issue.

@HendricksJudy HendricksJudy deleted the fix-tcplplot-bug branch October 21, 2024 18:42
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.

Investigate tcplPlot ggplot bug when type = "sc" verbose = FALSE and compare.val is set
2 participants