Below is my R code for graphing a function using quantmod, However the limit of this is that i can output only one graph. Is there a way to have your function output more than one graph, Say by setting content to text/html
and somehow rendering multiple graphs using that? Can you explain to me how to do that?
tickergraph = function()
{
setContentType ("image/png")
temp <- tempfile ()
png (temp, type="cairo")
ticker <- toupper(POST$t);
getSymbols(ticker)
chartSeries(eval(parse(text=ticker)))
dev.off ()
sendBin (readBin (temp, 'raw', n=file.info(temp)$size))
unlink (temp)
}
if(!is.null(POST$t))
{
tickergraph()
print(POST)
}
print("Cannot Plot when some of the values are NULL")