# treemapify 2.6.1

## Minor changes

- The 'svglite' package is now suggested rather than imported, so it is no
  longer a hard installation dependency; it is only needed to run the package's
  pattern-fill visual tests (#66).
- `treemapify()`'s help page now documents its return value: the columns of the
  returned layout data frame, and how rows with zero, negative, or missing
  `area` values are handled (#69).

## Bug fixes

- `geom_treemap_subgroup_border()` (and its `subgroup2`/`subgroup3` variants)
  now defaults to `show.legend = FALSE`, so adding a border no longer inflates
  the legend keys or overrides `theme(legend.key.size)` (#36, #58).
- `geom_treemap_subgroup_border()` now works when an inherited aesthetic such
  as `colour` varies within subgroups, rather than erroring (#54, #71).
- `treemapify()` now drops rows with a missing `area` value and issues an
  informative warning, rather than failing with a cryptic error (#53).
- `treemapify()` now keeps tiles within the requested `xlim` and `ylim` when a
  non-default `start` corner is set (#52).
- `treemapify()` now validates the `start` argument and errors on an
  unrecognised value, rather than silently treating it as `"bottomleft"`
  (#55).

# treemapify 2.6.0

## Major changes

- Add support for ggplot2 3.5 patterns and gradients (see
  https://www.tidyverse.org/blog/2024/02/ggplot2-3-5-0/#patterns-and-gradients;
  #50, thanks @trevorld)

## Minor changes

- Change default roundrect radius in GeomTreemap to 0 pts (#48, thanks @davidhodge931)
- Export GeomTreemap and GeomTreemapText (#48, thanks @davidhodge931)
- treemapify() includes the area column in its output (#49, thanks @davidhodge931)

# treemapify 2.5.6

## Minor changes

- Replace `i:j` with `seq_along()` or similar
- Update testing and continuous integration infrastructure
- Small documentation updates
- Use the cli package for errors and warnings

## Bug fixes

- Fix colour aesthetic in key for `geom_tremap()` (#47, thanks @jjbuonocore)

# treemapify 2.5.5

## Bug fixes

- Make vdiffr tests conditional
- Fix use of `order()` on a data frame

# treemapify 2.5.4

## Major changes

- Increase R minimum version requirement to 3.6

## Bug fixes

- Variants on `place = "centre"` ("middle" and "center") are now handled
  correctly

# treemapify 2.5.3

## Bug fixes

- Fix issue with correct drawing of aesthetics in
  `geom_tremap_subgroup*_text()` (#32, thanks @jonathan-g).

# treemapify 2.5.2

## Bug fixes

- Fix issue with importing ggfittext.

# treemapify 2.5.1

## Major changes

- Added new `layout` and `start` arguments to `treemapify()` and all geoms.

## Minor changes

- Restore `xlim` and `ylim` options to `treemapify()`.
- Add and improve tests.
- Misc. code quality improvements.

## Bug fixes

- Fixed bug in handling of subgroups, which should result in more aesthetically
  pleasing layouts.
- Fix dereferencing of arguments in `treemapify()` (#22, thanks
  @GregorDeCillia).
- Fix deprecation of `fill`, `label` and `group` arguments in `treemapify()` to
  maintain backwards compatibility (thanks @GregorDeCillia).

# treemapify 2.5.0

## Major changes

- Refactor treemap layout algorithms.
- Add support for nested subgroups with new `subgroup2` and `subgroup3`
  aesthetics, and `geom_treemap_subgroup2_border`,
  `geom_treemap_subgroup3_border`, `geom_treemap_subgroup2_text`, and
  `geom_treemap_subgroup3_text` geoms.

## Minor changes

- Add 'hemisphere' column to G20 data.

## Bug fixes

- Fix typo in README (#19, thanks @mruessler).

# treemapify 2.4.0

## Minor changes

- Change R and grid dependencies to 3.1.
- Remove reshape2 dependency.

## Bug fixes

- Fix handling of data where some observations have area 0 (#17, thanks @py).

# treemapify 2.3.2

## Minor changes

- Documentation and misc. other changes in preparation for CRAN submission.
- Refresh and update documentation.
- Neater solution to import S3 method `makeContent.fittexttree` from
  'ggfittext'.
- Deprecate `ggplotify()`
- Add travis-ci and CRAN badges to README.
- Misc. small changes in preparation for CRAN submission.

## Bug fixes

- Remove README.html so README renders correctly on GitHub.
- Fix arguments to `geom_treemap_subgroup_text` so they actually work.
- Fix namespace incompatibility with ggfittext 0.4.2.
- Explicit invocation of all imported functions.
- Misc. small fixes in preparation for CRAN submission.

# treemapify 2.3.1

## Bug fixes

- Remove wide characters causing problems in non-UTF-8 locales.

# treemapify 2.3

## Major changes

- Add 'treemapify_fixed' function.
- Add 'fixed' options to geoms.
- Add example of animated treemap to README.

# treemapify 2.2.3

## Minor changes

- Fix ambiguity in README.
- Add test for inclusion of G20 data frame.

# treemapify 2.2.2

## Minor changes

- Moved plyr and reshape2 from 'Depends' to 'Imports'.

# treemapify 2.2.1

## Bug fixes

- Fix required `ggfittext` version.
- Fix typos.

# treemapify 2.2

## Major changes

- Add 'reflow' options to `geom_treemap_text` and `geom_treemap_subgroup_text`.
- Add 'lineheight' aesthetic to `geom_treemap_text` and `geom_treemap_subgroup_text`.

## Bug fixes

- Fix namespace error causing text not to be drawn in some circumstances.

# treemapify 2.1

## Major changes

- Rename arguments for ggfittext v0.3.

# treemapify 2.0

## Major changes

- Added `geom_treemap`, `geom_treemap_text`, `geom_treemap_subgroup_border` and
  `geom_treemap_subgroup_text` ggplot2 geoms.

# treemapify 1.1.1

## Bug fixes

- Fix integer overflow error

# treemapify 1.1

## Bug fixes

- All font sizes now consistently and correctly expressed in points.
