‘x’ and ‘y’ lengths differ ERROR when plotting
From the code you provided, Vehic_vol is not a column of VehicleData. If you enter in it returns Note that NULL and VehicleData$CITY_MPG have different lengths (use length() to verify that). Try this instead or