Description Usage Arguments Details Author(s) Examples
Generates a visualisation of limit order events (excluding market and market limit orders).
| 1 2 3 4 | 
| events | Limit order  | 
| start.time | Plot events from this time onward. | 
| end.time | Plot events up until this time. | 
| price.from | Plot events with price levels >= this value. | 
| price.to | Plot events with price levels <= this value. | 
| volume.from | Plot events with volume >= this value relevant to volume.scale | 
| volume.to | Plot events with volume <= this value relevant to volume scale. | 
| volume.scale | Volume scale factor. | 
Ask side orders = red.
Bid side orders = blue.
Volume of order determines size of circle.
Opaque = volume was added.
Transparent = volume was removed.
phil
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run: 
# plot all orders 
with(lob.data, plotEventMap(events))
## End(Not run)
# 1 hour of activity and re-scale the volume
with(lob.data, plotEventMap(events,
    start.time=as.POSIXct("2015-05-01 03:30:00.000", tz="UTC"),
    end.time=as.POSIXct("2015-05-01 04:00:00.000", tz="UTC"),
    volume.scale=10^-8))
# 15 minutes of activity >= 5 (re-scaled) volume within price range
# $ [220, 245]
with(lob.data, plotEventMap(events,
    start.time=as.POSIXct("2015-05-01 03:30:00.000", tz="UTC"),
    end.time=as.POSIXct("2015-05-01 03:45:00.000", tz="UTC"),
    price.from=220,
    price.to=245,
    volume.from=5,
    volume.scale=10^-8))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.