Skip to content

Commit

Permalink
translate linewidth to edge_width
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 10, 2024
1 parent d5a3bb0 commit 8516088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/edges.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit 8516088

Please sign in to comment.