Skip to content

Commit

Permalink
Fixes wrong step
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Oct 15, 2024
1 parent 31938a4 commit 1c3d2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/geom_streamline.R
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ streamline.f <- function(field, dt = 0.1, S = 3, skip.x = 1, skip.y = 1, nx = NU
points[, group := interaction(group, piece, end)]
points[, line := group]

points[, step := seq(0, .N), by = .(group)]
points[, step := seq(1, .N), by = .(group)]
return(points[, .(x, y, group, piece, end, step, dx, dy, line)])
}

Expand Down

0 comments on commit 1c3d2c3

Please sign in to comment.