Skip to content

Commit

Permalink
fixed bug with stratum_label_type = 'text'
Browse files Browse the repository at this point in the history
  • Loading branch information
gernophil committed Nov 19, 2023
1 parent 20b7fc3 commit e3b93fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/alluvial_long.R
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ alluvial_long = function( data
if(stratum_label_type == "label"){
p = p + geom_label( stat = ggalluvial::StatStratum
, size = stratum_label_size )
} else if (stratum_labels == "text"){
} else if (stratum_label_type == "text"){
p = p + geom_text( stat = ggalluvial::StatStratum
, size = stratum_label_size )
}
Expand Down
2 changes: 1 addition & 1 deletion R/alluvial_wide.R
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ alluvial_wide = function( data
if(stratum_label_type == "label"){
p = p + geom_label( stat = ggalluvial::StatStratum
, size = stratum_label_size )
} else if (stratum_labels == "text"){
} else if (stratum_label_type == "text"){
p = p + geom_text( stat = ggalluvial::StatStratum
, size = stratum_label_size )
}
Expand Down

0 comments on commit e3b93fe

Please sign in to comment.