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

Plotting tweaks: bug fix for x label, and support night shading with missing data #693

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

dsheldon
Copy link
Contributor

Change 1: fix a bug where the xlab argument passed to plot.vpi is not used and the x label is hard coded to "time" when plot is called.

Change 2: ignore NAs when automatically determining the y axis limits for night shading. This allows the night shading to work properly if the plotted quantity has NAs, which can be useful if you want to filter some values from plotting.

2. Use na.rm when determining axis limits for night shading to be
   compatible with plotting with some missing values
@adokter
Copy link
Owner

adokter commented Jan 16, 2025

Thanks @dsheldon!

@adokter adokter merged commit 4c031c7 into adokter:master Jan 16, 2025
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