Skip to content

ggplot2 Deprecation and Aesthetic Warnings #5

Description

@aravind-j

The are several warnings with the latest ggplot2 update. Here is a summary.

1. Deprecated ggplot2 functions & syntax

corr_plot.R

Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`.

Warning: `aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`.

gamem.R

Warning: `fortify(<lm>)` was deprecated in ggplot2 4.0.0.
ℹ Please use `broom::augment(<lm>)` instead.

gamem_met.R

Warning: `aes_()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation idioms with `aes()`

plot.anova_joint.R

Warning: The dot-dot notation (`..density..`) was deprecated in ggplot2 3.4.0.
ℹ Please use `after_stat(density)` instead.

plot.resp_surf.R

Warning: `stat(level)` was deprecated in ggplot2 3.4.0.
ℹ Please use `after_stat(level)` instead.

Deprecated aesthetic argument names

venn_plot.R

Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.

barplots.R

Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.

Warning: The `size` argument of `element_rect()` is deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.

Warning: The `size` argument of `element_line()` is deprecated as of ggplot2 3.4.0.
ℹ Please use the `linewidth` argument instead.

Unsupported or risky usage

plot.wsmp.R

Warning: Vectorized input to `element_text()` is not officially supported.
ℹ Results may be unexpected or may change in future versions of ggplot2.

Ignored or misused arguments

barplots.R, corr_focus.R, corr_plot.R, find_outliers.R

Warning in geom_bar(aes(fill = y), colour = "black", stat = "identity", :
Ignoring unknown parameters: `size`

Warning in geom_histogram(fill = ggplot2::alpha(col.diag, alpha.diag), col =
"black", : Ignoring unknown parameters: `size`

Data length mismatch in geoms

plot.gge.R

Warning in geom_segment(x = 0, y = 0, xend = med1, yend = med2, arrow =
arrow(length = unit(0.3, : All aesthetics have length 1, but the data has 24 rows.
ℹ Please consider using `annotate()` or provide this layer with data containing
  a single row.

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