Home > Software engineering >  Color sf points and linestring by numeric variable
Color sf points and linestring by numeric variable

Time:02-03

I've got some GPS data (latlong) and I want to plot the GPS points and their connecting lines and color both by the time difference between the two GPS points. I've figured out how to color the points and convert the points to a LINESTRING but I can't figure out how to recolor the scale of the line.

I saw this post: enter image description here

Thank you!

CodePudding user response:

I'm confident there are prettier ways to do this, but this works!

I needed to add in a group variable to use to generate linegroups. This was inspired by: Colourful Line Segments

  • Related