Skip to content

Commit

Permalink
Set rename_size correctly on edge geoms
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 10, 2024
1 parent 8516088 commit 3186ec4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/geom_edge.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ GeomEdgePath <- ggproto('GeomEdgePath', GeomPath,
label_pos = 0.5, label_size = 3.88, angle = 0,
hjust = 0.5, vjust = 0.5, family = '', fontface = 1,
lineheight = 1.2
)
),
rename_size = FALSE
)
#' @rdname ggraph-extensions
#' @format NULL
Expand Down Expand Up @@ -270,7 +271,8 @@ GeomEdgeSegment <- ggproto('GeomEdgeSegment', GeomSegment,
default_aes = aes(
edge_colour = 'black', edge_width = 0.5, edge_linetype = 1,
edge_alpha = NA
)
),
rename_size = FALSE
)
#' @rdname ggraph-extensions
#' @format NULL
Expand Down Expand Up @@ -475,6 +477,7 @@ GeomEdgeTile <- ggproto('GeomEdgeTile', GeomTile,
edge_fill = 'grey20', edge_colour = NA, edge_width = 0.1,
edge_linetype = 1, edge_alpha = NA
),
rename_size = FALSE,
extra_params = c('na.rm', 'mirror')
)
#' @rdname ggraph-extensions
Expand Down Expand Up @@ -506,6 +509,7 @@ GeomEdgeBezier <- ggproto('GeomEdgeBezier', GeomBezier0,
edge_colour = 'black', edge_width = 0.5, edge_linetype = 1,
edge_alpha = NA
),
rename_size = FALSE,
handle_na = function(data, ...) {
data
}
Expand Down Expand Up @@ -539,6 +543,7 @@ GeomEdgeBspline <- ggproto('GeomEdgeBspline', GeomBspline0,
edge_colour = 'black', edge_width = 0.5, edge_linetype = 1,
edge_alpha = NA
),
rename_size = FALSE,
handle_na = function(data, ...) {
data
}
Expand Down

0 comments on commit 3186ec4

Please sign in to comment.