We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5673ac commit 55718a7Copy full SHA for 55718a7
R/coord-munch.R
@@ -61,7 +61,7 @@ munch_data <- function(data, dist = NULL, segment_length = 0.01) {
61
}
62
63
# How many endpoints for each old segment, not counting the last one
64
- extra <- pmax(floor(dist / segment_length), 1)
+ extra <- pmin(pmax(floor(dist / segment_length), 1), 1e4)
65
extra[is.na(extra)] <- 1
66
# Generate extra pieces for x and y values
67
# The final point must be manually inserted at the end
0 commit comments