Commit f828794
authored
✨ Using date breaks/minor breaks/labels in time scales. (#6282)
* Allow `transform = "hms"` in `datetime_scale()`
* add date arguments to time scales
* use `datetime_scale()` in time scales
* allow for additional underscore args
* inherit position scale
* `label_time()` can handle both <POSIXt> *and* <difftime> classes
* add test
* add news bullet
* redocument
* work in a skip
* Revert "`label_time()` can handle both <POSIXt> *and* <difftime> classes"
This reverts commit adcd2cb.
* separate labelling logic1 parent f2ad948 commit f828794
File tree
5 files changed
+65
-19
lines changed- R
- man
- tests/testthat
- _snaps
5 files changed
+65
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
299 | 301 | | |
300 | 302 | | |
301 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
| 228 | + | |
227 | 229 | | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 | | |
| 243 | + | |
238 | 244 | | |
| 245 | + | |
239 | 246 | | |
| 247 | + | |
240 | 248 | | |
| 249 | + | |
| 250 | + | |
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
| 254 | + | |
249 | 255 | | |
| 256 | + | |
| 257 | + | |
250 | 258 | | |
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
| 265 | + | |
257 | 266 | | |
| 267 | + | |
258 | 268 | | |
| 269 | + | |
259 | 270 | | |
260 | 271 | | |
261 | 272 | | |
| |||
264 | 275 | | |
265 | 276 | | |
266 | 277 | | |
267 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
268 | 281 | | |
| 282 | + | |
269 | 283 | | |
| 284 | + | |
270 | 285 | | |
| 286 | + | |
271 | 287 | | |
| 288 | + | |
| 289 | + | |
272 | 290 | | |
273 | 291 | | |
274 | 292 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 293 | + | |
280 | 294 | | |
| 295 | + | |
| 296 | + | |
281 | 297 | | |
282 | 298 | | |
283 | 299 | | |
| |||
312 | 328 | | |
313 | 329 | | |
314 | 330 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
318 | 338 | | |
319 | 339 | | |
320 | 340 | | |
| |||
324 | 344 | | |
325 | 345 | | |
326 | 346 | | |
327 | | - | |
| 347 | + | |
| 348 | + | |
328 | 349 | | |
329 | 350 | | |
330 | 351 | | |
331 | 352 | | |
332 | 353 | | |
333 | 354 | | |
334 | 355 | | |
335 | | - | |
| 356 | + | |
| 357 | + | |
336 | 358 | | |
337 | 359 | | |
338 | 360 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| |||
0 commit comments