I've got an Incanter dataset with 3 columns: a date/timestamp, a response time and a message size. What I'd like to do is create a scatter plot with the date/timestamp on the x axis and response times as the y axis.
This is easy enough, but I'd like to generate separate series of data based on the message size column. Incanter's scatter-plot
function takes a :group-by
option, but it appears to only handle discrete values. I'd like the series to be generated by applying some function to the message size column. Some function like:
(fn [n]
(cond
(< n 5000) "small"
(and (>= n 5000) (< n 20000)) "medium"
(>= n 20000) "large"))
Is this possible or is there a better way to accomplish the same thing?