Skip to content

fix plot predictions when no truth is available#108

Merged
nikosbosse merged 2 commits intomasterfrom
fix-plot_predictions
Jun 21, 2021
Merged

fix plot predictions when no truth is available#108
nikosbosse merged 2 commits intomasterfrom
fix-plot_predictions

Conversation

@nikosbosse
Copy link
Copy Markdown
Collaborator

plot currently errors if no truth data is available

@nikosbosse nikosbosse assigned nikosbosse and seabbs and unassigned nikosbosse Apr 5, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2021

Codecov Report

Merging #108 (3298efa) into master (8437a56) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

❗ Current head 3298efa differs from pull request most recent head c5a6c26. Consider uploading reports for the commit c5a6c26 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
- Coverage   48.78%   48.74%   -0.04%     
==========================================
  Files          18       18              
  Lines        1355     1356       +1     
==========================================
  Hits          661      661              
- Misses        694      695       +1     
Impacted Files Coverage Δ
R/plot.R 0.00% <0.00%> (ø)

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 8437a56...c5a6c26. Read the comment docs.

Copy link
Copy Markdown
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

LGTM. Usually when you fix a big you should add a unit test as well. It also serves as a good example for the reviewer of not provided in the or.

lwd = 0.2)
if (nrow(truth_data) > 0) {
plot <- plot +
ggplot2::labs(x = xlab, y = ylab)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is axis labelling included here?

@nikosbosse nikosbosse merged commit c091495 into master Jun 21, 2021
@nikosbosse nikosbosse deleted the fix-plot_predictions branch November 25, 2021 14:30
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