Skip to content

Using lwd parameter in geom_line() produces size warning #5051

Closed
@sarmapar

Description

@sarmapar

I recently updated ggplot and found I am getting the "Using size aesthetic for lines was deprecated in ggplot2 3.4.0." warning for my lines of code where I use the lwd parameter. Is lwd also being deprecated? I think a more clear/informative warning would be helpful, because it took me a while to find the source since I didn't explicitly use size anywhere.

Simplified example that produces the warning:

library(ggplot2)

ggplot(economics, aes(date, unemploy)) + 
   geom_line(lwd = 0.25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions