animation
animation copied to clipboard
Per item label,title,description
For each animation element, I should be able to place a label (e.g., title for the element I may want to jump to).
In addition, for each element, a title and description (.e.g., display above the graph as main/submain) would be a nice feature.
animation
is a package to animate image/figure sequence. You should generate figures with label and title before using any animation
function.
I am referring to saveHTML
where I want the label/title to be machine-readable (e.g., in the HTML, not in the figure). When I click on the next element, or when it is auto-playing, it would be nice that the HTML could report label/title/description. This should not be difficult to add as a dataframe option or something:
In the below example nr=64
so I have 64 animated figures. Certainly I could add static detail to the figure, but you are allowing some control over the HTML/JQUERY space, why not allow such per-item data objects. Again, HTML is copy/paste machine readable, a title in a figure is only an image.
animation::saveHTML(
for(i in 1:nr)
{
#image(dinfo[,,i])
image(dinfo[,,i], col = gray((0:256)/256) );
#image(dinfo[,,i], col = terrain.colors(256) );
},
img.name = paste( rkey ,"_",sep=""),
htmlfile = paste( rkey ,".html",sep=""),
#navigator = T,
ani.width=nx,
ani.height=ny,
#title = paste("Zones: ",paste(s_$zones, sep=" - ", collapse="")),
#verbose = T,
autobrowse = F #,
#description = myD
);
It appears that scianimator would allow for other "parallel" arrays to each image element. When I am interacting with the output, it would be nice if I could mouse over the "green box" and recall some label to refer to which stage of nr=64
I am at.