Skip to content

Commit 3902f49

Browse files
committed
try to detect orientation better
1 parent 10205b0 commit 3902f49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/stat-connect.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ StatConnect <- ggproto(
6868
required_aes = c("x|xmin|xmax", "y|ymin|ymax"),
6969

7070
setup_params = function(data, params) {
71-
params$flipped_aes <- has_flipped_aes(data, ambiguous = TRUE)
71+
params$flipped_aes <- has_flipped_aes(
72+
data, params,
73+
range_is_orthogonal = TRUE, ambiguous = TRUE
74+
)
7275

7376
connection <- params$connection %||% "hv"
7477

0 commit comments

Comments
 (0)