From 8516088d421a3349bc23b74aef0982441c4d2e36 Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Wed, 10 Jan 2024 15:27:16 +0100 Subject: [PATCH] translate linewidth to edge_width --- R/edges.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/edges.R b/R/edges.R index e6896262..e6a29986 100644 --- a/R/edges.R +++ b/R/edges.R @@ -185,7 +185,7 @@ complete_edge_aes <- function(aesthetics) { } expand_edge_aes <- function(x) { short_names <- names(x) %in% c( - 'colour', 'color', 'fill', 'linetype', 'shape', 'size', 'width', 'alpha' + 'colour', 'color', 'fill', 'linetype', 'shape', 'size', 'width', 'alpha', 'linewidth' ) names(x)[short_names] <- paste0('edge_', names(x)[short_names]) if (all(c('edge_linewidth', 'edge_width') %in% names(x) == c(TRUE, FALSE))) {