-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error reported but not displayed when using crs and default_crs parameter in coord_sf #6382
Comments
Thanks for the report! The issue is here is that you're trying to use |
Yeah to reduce anti-aliasing artefacts you can use the following mapping: |
Great work! Thanks! : ) |
Oh, and it suddenly occurred to me that both pieces of information are very useful. But it doesn't seem to be reflected in the documentation? (Or maybe I'm just not seeing it...) ggplot stable and ggplot dev If not, could it be added to the docs by the way, I'm sure it'll prevent anyone else from asking the same not-so-clever question as me. hhhhhh
and
|
Falling back to drawing as Is the But if the result is correct, is |
The anti-aliasing properties are device dependent, so the trick to avoid phantom lines are not universal.
It should be similar. I can't spot any difference by eye.
I'm not sure what you mean by this. How does the width/2 offset come into play?
No, |
Sorry! It does seem a bit unclear, probably means something like:
So |
Yeah rasters already calculate the 4 sides of a cell to correctly place the 4 corners of the raster, so it naturally expands to data compatible with
Well it gives the correct result in terms of data visualisation, it does not give the correct result in terms of 'the user requests a raster' for which there can be various intentions. A raster has a smaller file size footprint than polygons/rectangles and can interpolate cells, which are both valid reasons to prefer a raster over rectangles. |
Yeah, for those who do spatial data analysis (including spatial data visualisation) will naturally be more receptive to raster, and the presentation of interpolated data will be easier. Thanks for your great work! |
Hi, I'm using ggplot to process some geospatial data and I'm finding that setting
crs
anddefault_crs
doesn't produce the expected results and no errors are reported.I'm not sure if it's because I don't fully understand these two parameters or if it's something else.
crs
is supposed to determine the reference system for the final plot;default_crs
is used to specify the original reference system for the data.In the example below, the raw data is in the
epsg:4326
coordinate system, and I'm trying to show it using a different projected coordinate system, but the plotting results are blank.I provided data that could be reproduced: example data
The text was updated successfully, but these errors were encountered: