Comments (3)
Yes, a0daa0e fixes the issue. Thank you for the quick resolution.
from treemapify.
For reference, here is the same example with 2.5.0, which I installed with
devtools::install_version(
"treemapify", version = "2.5.0", repos = "http://cran.us.r-project.org"
)
library(ggplot2)
library(treemapify)
ggplot(G20, aes(area = gdp_mil_usd, fill = hdi, label = country)) +
geom_treemap() +
geom_treemap_text(fontface = "italic", colour = "white", place = "centre",
grow = TRUE)
Created on 2018-10-09 by the reprex package (v0.2.1)
Session info
devtools::session_info()
#> Session info -------------------------------------------------------------
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> system x86_64, darwin17.6.0
#> ui unknown
#> language (EN)
#> collate en_US.UTF-8
#> tz America/New_York
#> date 2018-10-09
#> Packages -----------------------------------------------------------------
#> package * version date source
#> assertthat 0.2.0 2017-04-11 CRAN (R 3.5.0)
#> backports 1.1.2 2017-12-13 CRAN (R 3.5.0)
#> base * 3.5.1 2018-07-03 local
#> bindr 0.1.1 2018-03-13 CRAN (R 3.5.0)
#> bindrcpp 0.2.2 2018-03-29 CRAN (R 3.5.0)
#> colorspace 1.3-2 2016-12-14 CRAN (R 3.5.0)
#> compiler 3.5.1 2018-07-03 local
#> crayon 1.3.4 2017-09-16 CRAN (R 3.5.0)
#> curl 3.2 2018-03-28 CRAN (R 3.5.0)
#> datasets * 3.5.1 2018-07-03 local
#> devtools 1.13.6 2018-06-27 CRAN (R 3.5.0)
#> digest 0.6.17 2018-09-12 CRAN (R 3.5.1)
#> dplyr 0.7.6 2018-06-29 CRAN (R 3.5.0)
#> evaluate 0.11 2018-07-17 CRAN (R 3.5.1)
#> ggfittext 0.6.0 2018-07-06 CRAN (R 3.5.1)
#> ggplot2 * 3.0.0 2018-07-03 CRAN (R 3.5.0)
#> glue 1.3.0 2018-07-17 CRAN (R 3.5.1)
#> graphics * 3.5.1 2018-07-03 local
#> grDevices * 3.5.1 2018-07-03 local
#> grid 3.5.1 2018-07-03 local
#> gtable 0.2.0 2016-02-26 CRAN (R 3.5.0)
#> htmltools 0.3.6 2017-04-28 CRAN (R 3.5.0)
#> httr 1.3.1 2017-08-20 CRAN (R 3.5.0)
#> knitr 1.20 2018-02-20 CRAN (R 3.5.0)
#> labeling 0.3 2014-08-23 CRAN (R 3.5.0)
#> lazyeval 0.2.1 2017-10-29 CRAN (R 3.5.0)
#> magrittr 1.5 2014-11-22 CRAN (R 3.5.0)
#> memoise 1.1.0 2017-04-21 CRAN (R 3.5.0)
#> methods * 3.5.1 2018-07-03 local
#> mime 0.6 2018-10-05 CRAN (R 3.5.1)
#> munsell 0.5.0 2018-06-12 CRAN (R 3.5.0)
#> pillar 1.3.0 2018-07-14 CRAN (R 3.5.1)
#> pkgconfig 2.0.2 2018-08-16 CRAN (R 3.5.1)
#> plyr 1.8.4 2016-06-08 CRAN (R 3.5.0)
#> purrr 0.2.5 2018-05-29 CRAN (R 3.5.0)
#> R6 2.3.0 2018-10-04 CRAN (R 3.5.1)
#> Rcpp 0.12.19 2018-10-01 CRAN (R 3.5.1)
#> rlang 0.2.2 2018-08-16 CRAN (R 3.5.1)
#> rmarkdown 1.10 2018-06-11 CRAN (R 3.5.0)
#> rprojroot 1.3-2 2018-01-03 CRAN (R 3.5.0)
#> scales 1.0.0 2018-08-09 CRAN (R 3.5.1)
#> stats * 3.5.1 2018-07-03 local
#> stringi 1.2.4 2018-07-20 CRAN (R 3.5.1)
#> stringr 1.3.1 2018-05-10 CRAN (R 3.5.0)
#> tibble 1.4.2 2018-01-22 CRAN (R 3.5.0)
#> tidyselect 0.2.4 2018-02-26 CRAN (R 3.5.0)
#> tools 3.5.1 2018-07-03 local
#> treemapify * 2.5.0 2018-04-30 url
#> utils * 3.5.1 2018-07-03 local
#> withr 2.1.2 2018-03-15 CRAN (R 3.5.0)
#> xml2 1.2.0 2018-01-24 CRAN (R 3.5.0)
#> yaml 2.2.0 2018-07-25 CRAN (R 3.5.1)
from treemapify.
@copernican Thanks for picking up this bug and for providing a reprex! I've released a dev version to fix this bug, could you please install it with devtools::install_github('wilkox/treemapify')
and confirm that it fixes the issue for you?
from treemapify.
Related Issues (20)
- xlim ylim parameters broken in 2.5 HOT 1
- is there a way to get a tooltip to work? HOT 1
- Did tile aspect ratio changed in v 2.5.0? HOT 12
- Can the tile placement proceeds from other directions? HOT 7
- Problem with aesthetics for text color in geom_treemap_subgroup*_text HOT 3
- How do I use annotate() with treemapify? HOT 4
- Forthcoming release of ggplot2 and treemapify HOT 1
- Accessing individual treemap boxes HOT 8
- Legend size overridden by subgroup border HOT 1
- use {ggtext} to customize labels in geom_treemap_text() HOT 4
- Error running treemapify with subgroups HOT 2
- Make treemapify compatible with plotly r package HOT 4
- Treemap text piled up in center in shinyproxy, same code works fine locally on win10 HOT 15
- Ignoring unknown parameters: radius HOT 2
- Is there a way to make squarified layouts do rows first then columns? HOT 2
- place = "center" not working in geom_treemap_text HOT 1
- Using ggsave does not include the text created by geom_treemap_text HOT 1
- Set Colours of Subgroups? HOT 2
- Color aesthetics not showing up in legend? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treemapify.