@@ -148,7 +148,9 @@ Theme fixes:
148148 subtitle, and legend stack correctly above the plot region with proper
149149 spacing. (#605 )
150150
151- ### New plot types
151+ ### New features
152+
153+ #### New plot types
152154
153155- ` type_chull() ` (equivalently, ` type = "chull" ` ) for drawing convex hulls
154156 around grouped points. Uses ` grDevices::chull() ` under the hood and delegates
@@ -158,10 +160,10 @@ Theme fixes:
158160 ellipses around grouped points. Like ` type_chull ` , works well as a filled
159161 layer, e.g. ` plt_add(type = "ellipse", fill = 0.2) ` . (#610 @grantmcdermott )
160162
161- ### Other new features
163+ #### New ` tinyplot.* ` methods
162164
163- - A new top-level ` tinypairs() ` function, together with a dedicated
164- ` tinyplot.data.frame() ` method now supports direct plotting of data frames,
165+ - A top-level ` tinypairs() ` function, together with a dedicated
166+ ` tinyplot.data.frame() ` method, now supports direct plotting of data frames,
165167 with or without a formula. Combining with a formula is mostly useful insofar
166168 as it facilitates piping, e.g.
167169
@@ -174,7 +176,20 @@ Theme fixes:
174176 variables will yield a ` pairs() ` -style grid of all variable combinations.
175177 Thanks to @mthulin for the suggestion and original implementation idea.
176178 (#613 , #640 @zeileis @grantmcdermott )
177- - New top-level ` tinyplot() ` /` plt() ` arguments:
179+ - New dedicated ` tinyplot.ts() ` method for ` ts ` time series, e.g.
180+
181+ ``` r
182+ plt(EuStockMarkets )
183+ ```
184+
185+ Produces a line plot by default, although users can override by passing an
186+ explicit ` type ` argument. Similarly, multivariate series are faceted by
187+ default, but users can also override to obtain, say, a single frame with
188+ direct labels. (#558 @zeileis @grantmcdermott )
189+
190+ #### Other new features
191+
192+ - New and updated top-level ` tinyplot() ` /` plt() ` arguments:
178193 - ` cap = <string> ` for adding a caption to your plots. Captions are drawn at
179194 the bottom of the plot and are best paired with dynamic themes (since
180195 separation from ` sub ` is guaranteed). Appearance is customizable via
@@ -211,33 +226,37 @@ Theme fixes:
211226 ```
212227 The `labels` arg is silently ignored for non - text types.
213228 (# 639 @grantmcdermott)
214- - The `grid` argument (and `tpar("grid")` ) now accepts character strings to
215- control axis - specific grids at different resolutions. Uppercase letters
216- (`"X"` , `"Y"` , `"XY"` ) draw grid lines at the standard tick positions , while
217- lowercase letters (`"x"` , `"y"` , `"xy"` ) draw a finer grid with additional
218- lines at the midpoints between ticks. Thanks to @ zeileis for the suggestion.
219- (# 578 @grantmcdermott)
220- - Facet formulas now support `1` as a convenience syntax for single row or
221- column arrangements. (# 562 @zeileis)
222- - `plt(..., facet = z ~ 1)` <- > `plt(..., facet = ~z, facet.args = list(ncol = 1))`
223- - `plt(..., facet = 1 ~ z)` <- > `plt(..., facet = ~z, facet.args = list(nrow = 1))`.
224- - `type_barplot()` gains an `offset` argument for shifting bar baselines away
225- from zero. (# 611, #615 @grantmcdermott @zeileis)
226- - If the offset is an unnamed scalar or numeric vector , it shifts the bars
227- positionally by the given values. Useful for creating waterfall plots and
228- floating bars.
229- - If the offset is a character or named numeric vector , it instead " sets
230- aside" the named level(s ) of the `by` group , pulling them out of the stack
231- and drawing them as standalone bars. This is useful for Likert plots , where
232- you want to show a neutral categories (e.g. , " Unsure" ) apart from the
233- diverging stack. Thanks to @ strengejacke for the suggestion.
234- - `type_text()` gains two new arguments :
235- - a `labeller` argument that is passed to `tinylabel()` for formatting the
236- text labels. (# 620 @grantmcdermott)
237- - a `repel` argument that automatically nudges overlapping text labels apart.
238- One limitation is that the repulsion logic operates with groups. So there
239- may still be some overlapping text for for grouped data.
240- (# 621 @grantmcdermott)
229+ - The `grid` argument (and `tpar("grid")` ) now accepts character strings to
230+ control axis - specific grids at different resolutions. Uppercase letters
231+ (`"X"` , `"Y"` , `"XY"` ) draw grid lines at the standard tick positions , while
232+ lowercase letters (`"x"` , `"y"` , `"xy"` ) draw a finer grid with additional
233+ lines at the midpoints between ticks. Thanks to @ zeileis for the suggestion.
234+ (# 578 @grantmcdermott)
235+ - Facet formulas now support `1` as a convenience syntax for single row or
236+ column arrangements. (# 562 @zeileis)
237+ - `plt(..., facet = z ~ 1)` <- > `plt(..., facet = ~z, facet.args = list(ncol = 1))`
238+ - `plt(..., facet = 1 ~ z)` <- > `plt(..., facet = ~z, facet.args = list(nrow = 1))`.
239+ - Type - specific updates :
240+ - `type_barplot()` gains an `offset` argument for shifting bar baselines away
241+ from zero. (# 611, #615 @grantmcdermott @zeileis)
242+ - If the offset is an unnamed scalar or numeric vector , it shifts the bars
243+ positionally by the given values. Useful for creating waterfall plots and
244+ floating bars.
245+ - If the offset is a character or named numeric vector , it instead " sets
246+ aside" the named level(s ) of the `by` group , pulling them out of the stack
247+ and drawing them as standalone bars. This is useful for Likert plots ,
248+ where you want to show a neutral categories (e.g. , " Unsure" ) apart from
249+ the diverging stack. Thanks to @ strengejacke for the suggestion.
250+ - `type_text()` gains two new arguments :
251+ - a `labeller` argument that is passed to `tinylabel()` for formatting the
252+ text labels. (# 620 @grantmcdermott)
253+ - a `repel` argument that automatically nudges overlapping text labels
254+ apart. One limitation is that the repulsion logic operates with groups. So
255+ there may still be some overlapping text for for grouped data.
256+ (# 621 @grantmcdermott)
257+ - Model - fit and various distribution types gain a `weights` argument ; although
258+ this is best provided from the top - level `tinyplot()` / `plt()` call. See
259+ above.
241260
242261# ## Bug fixes
243262
0 commit comments