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

215 updated tcplPlot to return ggplot object if only 1 plot #275

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

cthunes
Copy link
Contributor

@cthunes cthunes commented Jul 19, 2024

  • Added new "ggplot" output option to function header. Using output = "ggplot" will return a ggplot object and will not save it to a file. Any output besides "console" and "ggplot" will save the ggplot to a file like normal; however, these will also return the ggplot object to the user's environment.
  • There must not be more than one concentration series, just like for "console" outputs (single comparison plots okay)
  • If verbose = FALSE, the return is a standard ggplot object.
  • If verbose = TRUE, the return contains both the ggplot object and verbose table arranged into gtable object, which is probably not desirable to work with. Users should expect to keep verbose = FALSE to easily manipulate the ggplot object in their environment. If verbose = TRUE and output = "ggplot", a related message is printed to the console.

Closes #215.

I am updating the docs to reflect these changes in the other open tcplPlot PR, to avoid merge conflicts.

Copy link
Collaborator

@madison-feshuk madison-feshuk left a comment

Choose a reason for hiding this comment

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

Approving based on user feedback from Laura

cthunes added a commit that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to produce dose-response curves using db 4.1?
2 participants