chickadee » ggplot » geom-eventplot

geom-eventplot data aes #!key scales line-length width colorprocedure

Draws one vertical tick per event time. Expects x to hold a list of timestamps per row and y to hold the row index (trial number).

(define spike-data
  '((trial  . (0 1 2 3 4))
    (spikes . ((12 25 38) (15 28 42) (10 23 40) (18 30 45) (13 27 41)))))

(geom-eventplot spike-data (aes #:x 'spikes #:y 'trial)
                #:line-length 0.7 #:width 1 #:color "black")