make_proto_from_xy <- function(x, y, Stimulus, Times = 1:ncol(y)) {
data(st)
rd <- proto(st)
rd$sweeps$y <- as.matrix(y)
rd$sweeps$x <- as.matrix(x)
rd$sweeps$Stimulus <- Stimulus
rd$sweeps$Trace_Time <- Times
return(rd)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.