Skip to content

Commit 0613aea

Browse files
committed
fix: fix error when sort_var is not specified in tm_p_swimlane
1 parent d2b2ff0 commit 0613aea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/tm_p_swimlane.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ tm_p_swimlane <- function(label = "Swimlane",
7979
subject_var,
8080
color_var,
8181
group_var,
82-
sort_var = NULL,
82+
sort_var = time_var,
8383
tooltip_vars = NULL,
8484
point_size = 10,
8585
point_colors = character(0),
@@ -160,7 +160,7 @@ srv_p_swimlane <- function(id,
160160
subject_var,
161161
color_var,
162162
group_var,
163-
sort_var = time_var,
163+
sort_var,
164164
point_size = 10,
165165
point_colors,
166166
point_symbols,

0 commit comments

Comments
 (0)