I have a list / frame of 15-25 data points. They are all between 0 and 100, and there are some clusters (for example, about 72). When displaying this data, I want to increase the distance between each pair of points, so that it should be at least 2 (for example, 69.4 and 71.4 are two neighboring points).
However, I need to ensure that I keep the general order and maintain each point as close to the source as possible.
My point list is just
scores <- c(13.343, 17.998, 25.413, 27.721, 33.361, 47.263, 52.298, 55.981, 57.851, 72.038, 72.204, 72.296, 73.472, 75.925, 80.748, 85.998)
I want to increase the distance between clusters of points. Points at 72.038 - 72.296 will move down to provide more even distribution.
spacedScores <- c(13.343, 17.998, 25.413, 27.721, 33.361, 47.263, 52.298, 55.981, 57.851, 67.925, 69.925, 71.925, 73.925, 75.925, 80.748, 85.998)
Any suggestions on how to do this most cleanly in R?
Explanations: I'm not necessarily looking for a mathematically optimal solution, just something very good. I also often see some points that need to be moved up, and some points are good.