I have a while that generates several graphs and some text after each graph. The code looks like this:
while i<=length(json)
{
ggplot graph
save the ggplot graph to use it like a background image for the next graph
ggplot graph
print(ggplot graph)
text from json
text from json
i=i+1
}
so when I generate the html it first generates the text and then the graphic, from what I've seen it skips print, generates the text and then returns to print
I want it to generate the graphic first and then the text