There could be a few reasons why points are not showing up when using both geom_sf()
and geom_point()
in the same plot:
Mapping: Make sure that the aesthetics for both geoms are correctly mapped. If the mapping for geom_point()
is incorrectly specified, the points may not show up.
Data format: If the data format for geom_point()
is different from geom_sf()
, they may not be compatible. For example, if the spatial object in geom_sf()
is in a different projection than the points in geom_point()
, they may not be visible.
Plot order: Check that the points are not being plotted underneath the polygons from geom_sf()
. By default, geom_sf()
will add the polygons first, which can hide any points plotted underneath.
Zoom level: It is possible that the points are simply too small to see at the zoom level you are viewing the plot. Try adjusting the scale or size of the points to make them more visible.
Layering: It is also possible that the points are being plotted but are simply not visible due to being overshadowed by the polygons. Try adjusting the layer order to make the points more prominent.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-15 12:17:35 +0000
Seen: 8 times
Last updated: Jul 15 '23
What are the possible situations in which microservices can fail?
Why does DockerPush fail when attempting to upload from Jenkins to Jfrog Docker Registry?
When utilizing futures.wait, the Cloud Pub/Sub `publish` function becomes unresponsive.
What is the examination of the commands that are executed while running an application?
What is the issue with obtaining the URI in Android Fileprovider?
What is preventing me from adding new static files to my springboot web application?
What does the Maven error "Failure to transfer..." mean?
What can be the reason for the improper scaling of glyphs in my terminal emulator?
In my ReactJS application, I continuously encounter an error message that says "CANNOT GET/".
What causes communication issues in encoders that utilize the Can Open Protocol?