Commit ccd94e1
authored
Implement default crs for non-sf objects in coord_sf(). (#3659)
* Implement default crs for non-sf objects in coord_sf().
* make limits work
* cleanup code, write documentation
* more accurately specify CRS
* handle missing or infinite values in sf_transform_xy().
* fix package build
* properly reset bbox at beginning of plot generation
* cleanup
* check that the coord is of type CoordSf before
calling its unique function
* scale limit improvements
* Register bounding box even for stat_sf_coordinates. Gives better default limits.
* finalize handling of limits, improve documentation
* unit tests for new coord_sf() features
* alternative limit methods
* ensure point data is always numeric
* expand documentation
* delete space
* capitalize crs
* check against incorrect mapping
* update docs
* more limits methods
* better limits methods
* simplify error message
* fix error message if scale limits inversion problem
* reword warnings and error messages.1 parent 7f88a56 commit ccd94e1
File tree
15 files changed
+1000
-78
lines changed- R
- man
- tests
- figs/coord-sf
- testthat
15 files changed
+1000
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| 595 | + | |
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
16 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
14 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
21 | 36 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 37 | + | |
| 38 | + | |
26 | 39 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
32 | 58 | | |
33 | 59 | | |
34 | 60 | | |
| |||
0 commit comments