I have a CSV with many values. Among them are times stored like this:
1:34.434
Using readr
, I form them into a tibble, and use dplyr
to cut out all the unnecessary rows and columns.
lapData <- read_csv("sampledata/sampledata.csv")
lapData <- dplyr::select(lapData,
Driver, Lap, Penalty, 'Lap Time', 'Lap type',
'Pressure FR', 'Pressure FL', 'Pressure RR', 'Pressure RL',
'Temp FR', 'Temp FL', 'Temp RR', 'Temp RL',
'Road Temp')
lapData <- dplyr::filter(lapData, Driver == "[personal info]")
lapData <- dplyr::filter(lapData, is.na(Penalty))
lapData <- dplyr::filter(lapData, Lap > 1)
I then use print(ggplot(data = lapData, mapping = aes(Lap, 'Lap Time')) + geom_line())
to print the data, and it looks like this:
If it isn't clear, the vertices of the graph line are rounded to the seconds value instead of using the full milisecond precision, which I would like to have.
If I then print(lapData)
, I see the following entries under 'Lap Time'
:
I did some research, and found this, which seems to indicate that the loss of precision in the printout from the tibble is inconsequential, and the full data is still stored in the tibble. However, the plot contradicts this statement.
How do I get the plot to show the full millisecond resolution?