Skip to content

Commit

Permalink
Better OutDEc
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Dec 23, 2023
1 parent 12ded1b commit 1dd5d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/stat_contour_fill.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ StatContourFill <- ggplot2::ggproto("StatContourFill", ggplot2::Stat,
# Make contours
dec <- getOption("OutDec")
options(OutDec = ".")
on.exit(options(OutDec = dec))
cont <- data.table::setDT(.contour_bands(data, breaks, complete = complete, clip = clip, proj = proj))
options(OutDec = dec)

cont[, int.level := (level_high + level_low)/2]
cont[, level_mid := int.level]
Expand Down

0 comments on commit 1dd5d39

Please sign in to comment.