Closed meghanmshea closed 7 months ago
I'm afraid this is a case of the tool being used for the wrong job. Since the mark geoms always calculate expansion in the render dimension it will be eternally fiddly to try to make it match your vision.
You'd be better off calculating the right dimensions that fits the coordinates of your data and then using geom_shape()
to round the corners
I've been trying to make a reproducible version of a diagram of the sampling scheme for a particular field project, mirroring this version that I made by hand in PowerPoint:
Geom_mark_rect has been super helpful for creating boxes around the collections of points. However, I've been having trouble making the boxes fit more tightly around the points (and not being forced to squares); when I try to make a similarly narrow version of the R figure, the boxes overlap:
It would be great if there were a way to make the geom_mark_rect boxes tighter around the points; any advice on parameters to change or things to try would be greatly appreciated. The code used to produce the R figure is below, where data_forchart can be imported from the attached .csv:
Chart_Data.csv 28-Jan-2022-TideChart.txt