Closed Yunuuuu closed 1 year ago
Thanks for bringing this up. This is caused by a change in the latest released ggplot2. A couple of things to consider for a fix:
DESCRIPTION
file.Also, a general comment: When reporting issues, it's most productive to try to come up with a minimal example that causes the problem. Minimal examples should definitely not depend on other packages or have all sorts of irrelevant, distracting code. Here, I believe the problem is caused by using certain cowplot themes, but I can't tell from the provided example.
I see you provided a minimal example here: https://github.com/wilkelab/cowplot/pull/189#issuecomment-1305723678
Oh, I'll put it here
A minimal example
library(ggplot2)
library(cowplot)
ggplot(mtcars) +
geom_point(aes(mpg, drat)) +
theme_cowplot()
Warning messages:
1: The `size` argument of `element_line()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
cowplot package.
Please report the issue at
<https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated.
2: The `size` argument of `element_rect()` is
deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.
ℹ The deprecated feature was likely used in the
cowplot package.
Please report the issue at
<https://github.com/wilkelab/cowplot/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to
see where this warning was generated.
When I used
scater::plotColData
, there always prompts some annoying message by ggplot2 deprecated argumentssize
fromelement_text()
andelement_rect()
here is the output:
My sessionInfo is here: