Thats given me a few ideas and made me realise the need to explain more of the situation, cheers for sticking around and helping.
The reason for the renderplot was because we are having several plots in rows down a page. We have been using fluidrow() to allow for this, but I am starting to feel like we may need to take a different approach.
This is the start of my code:
library(shinydashboard)
library(readr)
library(ggplot2)
Shinyserver <- function(input, output, session) {
# Output sidebarpanel detail to UI -------------------------------------------
# Output body detail to UI -------------------------------------------
output$body <- renderUI({
div(width=12,
# Info Boxes --------------------------------------------------------------
fluidRow(tags$style(type="text/css", ".recalculating {opacity: 1.0;}"),
box(height= 400, width=10, valueBoxOutput("plot1")),
valueBoxOutput("activity1", width = 2)),
fluidRow(tags$style(type="text/css", ".recalculating {opacity: 1.0;}"),
box(title=h3("ActivityA02"), height= 400, width=10, plotOutput("plot2", height=250)),
valueBoxOutput("activity2", width = 2)))
})
I have some live streaming code where the external data file gets updated row by row which makes my current approach actually work. Unfortunately this new data isn't coming in 1 at a time :(.
Essentially I need to be able to place to plot in a box so that I can arrange my display to fit in with other things that are happening.
I hope I have explained myself a bit better, really appreciate the help.
Cheers.