Skip to content

Warning: The size argument of element_line() is deprecated as of ggplot2 3.4.0 #467

Description

@maczokni

Hiya! I got a warning message that asked if I could raise this as an issue, so here goes:

Warning message:
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 patchwork
package.
Please report the issue at
https://github.com/thomasp85/patchwork/issues.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this
warning was generated.

after running the lifecycle code I get:
[[1]]
<warning/lifecycle_warning_deprecated>
Warning:
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 patchwork
package.
Please report the issue at
https://github.com/thomasp85/patchwork/issues.

Backtrace:

  1. ├─base::plot(layout)
  2. └─patchwork:::plot.patch_area(layout)
  3. ├─ggplot2::theme(...)
  4. │ └─ggplot2:::find_args(..., complete = NULL, validate = NULL)
  5. │ └─base::mget(args, envir = env)
  6. └─ggplot2::element_line(size = 0.5, colour = "grey")
  7. └─ggplot2:::deprecate_warn0("3.4.0", "element_line(size)", "element_line(linewidth)")
    

This was the code I ran to generate the error:
layout<-c(
area(t=1,l=1,b=1,r=1),
area(t=2,l=1,b=2,r=1),
area(t=3,l=1,b=3,r=1),
area(t=1,l=2,b=3,r=2)
)

plot(layout)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions