Skip to content

Commit

Permalink
fix legend binning bug. (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
choonghyunryu committed May 18, 2024
1 parent 6c0bf02 commit 1875f37
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: bitSpatial
Type: Package
Title: Tools for Spatial Analysis in Korean Regions
Version: 0.2.7.9001
Date: 2024-05-18
Version: 0.2.7.9002
Date: 2024-05-19
Authors@R: c(
person("Choonghyun", "Ryu",, "[email protected]", role = c("aut", "cre"))
)
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bitSpatial 0.2.7.9001
# bitSpatial 0.2.7.9002

## MAJOR CHANGES

Expand Down Expand Up @@ -60,6 +60,9 @@
- pharmacy_info
- hospital_info

* legend binning 오류. (#35).
- thematic_map()



# bitSpatial 0.2.6
Expand Down
7 changes: 6 additions & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ thematic_map <- function(

if (length(brks) > col_cnt) {
brks <- classInt::classIntervals(stats2, n = col_cnt, style = "quantile")
brks <- unique(round(brks$brks))
# legend binning 오류(#35) 수정
# brks <- unique(round(brks$brks))
brks_min <- floor(brks$brks[1])
brks_max <- ceiling(brks$brks[length(brks$brks)])
brks_mid <- round(brks$brks[2:length(brks$brks)-1])
brks <- unique(c(brks_min, brks_mid, brks_max))
}
})

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ stats_info |>
gt::as_raw_html()
```

<div id="bxseoljwam" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<div id="bdeaaxqbbj" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
&#10; <table class="gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false" style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3;" bgcolor="#FFFFFF">
<thead style="border-style: none;">
&#10; <tr class="gt_col_headings" style="border-style: none; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3;">
Expand Down
4 changes: 2 additions & 2 deletions inst/doc/introduce.html

Large diffs are not rendered by default.

Binary file modified man/figures/README-unnamed-chunk-8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1875f37

Please sign in to comment.