| print.dynet_animation | R Documentation |
Print an animation's bin table
## S3 method for class 'dynet_animation'
print(x, n = 12L, ...)
x |
A |
n |
Largest number of bins to list, |
... |
Ignored. |
x, invisibly.
if (requireNamespace("gifski", quietly = TRUE) &&
requireNamespace("cograph", quietly = TRUE)) {
dn <- dynet(school_contacts)
frames <- animate(dn, step = 6, window = 6, tween = 2)
print(frames, n = 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.