There is an issue with pecjector where there is an unnecessary/undesirable space between the sf bounding box and the ggplot plotting panel. Dave tried to fix it but there may still be issues, especially when a user-defined area is plotted. In the meantime, users can sometimes manually fix the pecjector output by adding coord_sf(expand=F) and adjusting scale limits via scale_x_continuous and scale_y_continuous on their final plot, or by adjusting the user-defined area coordinates and re-trying.
Example:
p + coord_sf(expand=F) + scale_x_continuous(limits=c(xmin, xmax)) + scale_y_continuous(limits=c(ymin, ymax))
There is an issue with pecjector where there is an unnecessary/undesirable space between the sf bounding box and the ggplot plotting panel. Dave tried to fix it but there may still be issues, especially when a user-defined area is plotted. In the meantime, users can sometimes manually fix the pecjector output by adding coord_sf(expand=F) and adjusting scale limits via scale_x_continuous and scale_y_continuous on their final plot, or by adjusting the user-defined area coordinates and re-trying.
Example:
p + coord_sf(expand=F) + scale_x_continuous(limits=c(xmin, xmax)) + scale_y_continuous(limits=c(ymin, ymax))