#print("sourcing render_exp.R now")
render_exp<<-function(tree,selection){
sel<-c(attr(selection,"ancestry"),selection)
print(sel[2])
results<-get_all(tree, "NaPharm")
expresults<-subset(results, sel[2]==exp_)
require(ggplot2)
p<-(ggplot(expresults, aes_string("Trace_Time", "min"))
+geom_line(aes(colour=factor(ser)))
+geom_point()
)
print(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.