-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
A few places still use size where ggplot2 3.4+ expects linewidth:
Exported API:
grid_lines(color, size)inR/bayesplot-helpers.Raccepts asizeparameter and its@paramdocuments it assize, but internally passes it aslinewidthtoelement_line(). The parameter should be renamed tolinewidth(withsizekept as a deprecated alias for back-compat).- The internal
grid_lines_y()has the same issue.
Documentation examples:
R/mcmc-diagnostics.Rline 80:hline_at(0.5, linetype = 2, size = 0.15, color = "gray")— should uselinewidthsincehline_at()forwards...togeom_hline().R/mcmc-scatterplots.Rline 112:geom_smooth(method = "lm", se = FALSE, color = "gray20", size = .75, linetype = 2)— should uselinewidth.
These produce deprecation warnings on ggplot2 >= 3.4.0.
AI Usage Policy :
This issue was found using an LLM
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels