I have three columns of data (transect name, x-distance from start of transect, elevation along transect) and would like to quickly make an x-y scatter plot where each series is based on the transect name. I want to compare the slopes of the transects.
The three columns of data look like this:
Transect, X-distance, Elevation
A, 0, 0
A, 1, 2
A, 1, 3
A, 2, 4
B, 0, 0
B, 1, 3
B, 2, 4
C, 0, 0
C, 1, 1
etc. with about 15 "letters/transects" worth of data. In total about 150-200 rows.
Note also that the number of points per letter is variable (between 8 and 15 or so) and that they don't share any common X or Y (in this case distance and elevation)
I've googled/searched the "similar questions" but none of the answers seem to have the data set up the same way as me. They either share the same X, or have the series in adjacent columns.
Is there a way for R to just recognize the different names in the first column and make them different series?
Thanks


library(dplyr); df %>% group_by(Transect) %>% ...(whatever needs to happen next)- Ryan Morton