Commit 54d5fe7
fix(plot_serocurve): suppress fill scale warning when show_ci = FALSE
Move `scale_fill_manual()` inside an `if (show_ci)` guard so it is only
added when a CI ribbon is actually drawn. Previously the fill scale was
applied unconditionally for single-stratification plots, producing
"No shared levels found between names(values) of the manual scale and
the data's fill values" when show_ci was FALSE — which triggered an
R CMD check failure on the `serocurve-population-no-ci` test.
Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>1 parent bf221e2 commit 54d5fe7
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
234 | 231 | | |
235 | 232 | | |
236 | 233 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
| |||
0 commit comments