Is it possible to draw diagrams in R?
问题 I was wondering if there is any package in R that could use x, y coordinates and shape sizes to draw something like this: I have the coordinates of vehicles' front centers and their sizes (length and width). Edit This is what the original data set looks like: > head(df) Vehicle.ID Frame.ID Global.X Global.Y Vehicle.Length Vehicle.width Lane Preceding.Vehicle.ID Following.Vehicle.ID Spacing Headway 1 2 43 6451214 1873261 14.5 4.9 2 0 13 0 0 2 2 44 6451217 1873258 14.5 4.9 2 0 13 0 0 3 2 45