Add summary to example 3

This commit is contained in:
Joe Cheng
2012-06-27 14:43:56 -07:00
parent 74d450703c
commit e05358db1d
2 changed files with 6 additions and 0 deletions

View File

@@ -22,3 +22,7 @@ define.shiny.plot('plot1', function() {
define.shiny.table('table1', function() {
data.frame(x=data$get.value())
})
define.shiny.output('summary1', function() {
paste(capture.output(print(summary(data$get.value()))), collapse="\n")
})

View File

@@ -24,6 +24,8 @@
<img id="plot1" class="live-plot"/>
<pre id="summary1" class="live-text"></pre>
<div id="table1" class="live-html"></div>
</body>