Comments (4)
Aye. I need to work out a bit more of the details for the point transformations for the elided states. Using the core transformation steps doesn't quite get the points where they need to be (though I never poked at it too hard).
from albersusa.
I might be amiss here, but do you have the original shapefile and the transformed shapefile as well? I think I'd be able to create a function with the original shapefile available to the transformed. There's probably an issue with different projections, but at least this would be a temporary first step...
from albersusa.
The steps were outlined in a blog post last year (the transformations were the same, though I seem to have misplaced the generation script #sigh). When I helped someone last year with this some elided points did not get placed on the targets in HI and AK. Lemme try to regen it and provide the transform function (will try to get to it by the weekend).
from albersusa.
Found the blog post! And if the shapefiles for albersusa came from that particular post/repository, then it shouldn't be too difficult to add in an elide_points function here.
The maptools::elide() function implicitly uses a bounding box whenever it rotates or scales a polygon. So to rotate, scale, and shift points then we need the original bounding box used for Alaska and Hawaii to get the identical transformation and explicitly call this bounding box with the function. So long as the shapefiles are coming from that post and it's outlined methods, then I've got the bounding boxes.
from albersusa.
Related Issues (20)
- Updating shapefile
- Also provide centroid coordinates foe each state
- Metro areas? HOT 2
- 'albersusa' for R 3.4.1 HOT 2
- callr error on install
- README.md example doesn't work, with "Error in zero_range(from) : x must be length 1 or 2". HOT 2
- points_elided() moves Alaska and Hawaii onto mexico HOT 2
- Error: "unable to find an inherited method..." HOT 1
- points_elided() maps don't work in rmarkdown document HOT 3
- Points_elided not working with Tigris sp
- Can I get Puerto Rico projection please HOT 5
- counties_sf is out of date HOT 2
- Use sf instead of sp? HOT 6
- TODO: `sf` version of `points_elided` HOT 1
- Use crs as common prefix for CRSs?
- Weed out data HOT 1
- Keep this or⦠HOT 6
- Puerto Rico? HOT 8
- Make Alber's equal area the default projection.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from albersusa.