Skip to content

gghighlight 0.2.0

Compare
Choose a tag to compare
@yutannihilation yutannihilation released this 25 Jan 14:32
89c3693

New features

  • gghighlight() gets a new argument unhighlighted_params, which accepts a
    list of parameters for the unhighlighted layer (e.g. colour, fill, shape,
    and size). Accordingly, unhighlighted_colour is deprecated (#76).

  • gghighlight() gets a new argument keep_scales to choose whether to keep the
    original scale with the shadowed data (#72).

  • gghighlight() gets a new (experimental) argument calculate_per_facet to
    choose whether to calculate highlighting per facet or not (#14).

Bug fixes

  • If the mapping has group, use it as grouping variable, which is consistent
    with the logic of ggplot2 (#77).

  • gghighlight() now ignores if the calculation fails over some layers. This
    is useful to combine with such layers as annotate() (#78).

  • gghighlight() now allows to highlight 0-layer plots, which means just
    filtering the plot data (#81).

  • gghighlight() now ignores NAs in numeric predicates (#86).