I have this road map in Nepal as an image within a pdf, distinguishing different types of roads by colors or line type. I am trying to make a shapefile from the image. What is the best practice converting an image to a shapefile? Ideally, I would like to work in R, where I do most geospatial analysis.