Skip to content

Potential future issue with as.ggdend #131

@talgalili

Description

@talgalili

On R/ggdend.R:

Getting the following warning, which was resolved when size was switched to linewidth. Although, size = 1 and linewidth = 1 won't set the line to the same width. Better to go with the old version

Warning (test-ggdend.R:151:4): ggplot doesn't have warnings for dendrograms
Using size aesthetic for lines was deprecated in ggplot2
3.4.0.
ℹ Please use linewidth instead.
Backtrace:

├─ggplot2::ggplot(as.dendrogram(hclust(dist(mtcars)))) at test-ggdend.R:151:4
└─dendextend:::ggplot.dendrogram(as.dendrogram(hclust(dist(mtcars))))
├─ggplot2::ggplot(as.ggdend(data), ...) at dendextend/R/ggdend.R:635:3
└─dendextend:::ggplot.ggdend(as.ggdend(data), ...)
└─ggplot2::geom_segment(...) at dendextend/R/ggdend.R:537:6
└─ggplot2::layer(...)
└─ggplot2:::deprecate_soft0(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions