-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize app into multiple pages #8
Comments
The following link shows the app layouts achievable via shiny. The app layouts are:
|
A basic implementation of a multipage app is on the |
I am trying to generate graphs from the tsv file after its creation (just to reduce complexity, eventually this will happen during creation), but I get the error: observe(
lapply(seq_len(length(parameters[[input$specificModel]])), function(i) {
output[[paste0("meanTrajectoryOf", parameters[[input$specificModel]][[i]])]] <- renderPlot(
plot(
sapply(split(trace[[parameters[[input$specificModel]][[i]]]]*trace$weight, trace$n), sum),
ylim=c(0, 2),
type='o',
xlab='Iteration',
ylab=paste0('Mean', parameters[[input$specificModel]][[i]]),
cex.lab=1,
main=paste0('Trajectory of Mean ', parameters[[input$specificModel]][[i]], ' (', input$specificModel, ' Model)')
)
)
})
) which is based on the following code from the plot(
sapply(split(trace$lambda*trace$weight, trace$n), sum),
ylim=c(0, 2),
type='o',
xlab='Iteration',
ylab='Mean lambda',
cex.lab=1,
main='Trajectory of Mean Lambda (Yule Model, 1000 particles)'
) |
I commented out the following four lines but that didn't change the error: ylim=c(0, 2),
type='o',
xlab='Iteration',
ylab=paste0('Mean', parameters[[input$specificModel]][[i]]),
cex.lab=1,
main=paste0('Trajectory of Mean ', parameters[[input$specificModel]][[i]], ' (', input$specificModel, ' Model)') I plotted output[[paste0("meanTrajectoryOflambda")]] <- renderPlot(
plot( sapply(split(trace$lambda*trace$weight, trace$n), sum))
) |
A comment on the error below mentioned earlier in this thread: Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' is a list, but does not have components 'x' and 'y' This occurs when the |
I will be closing this issue since I managed to reorganize the app in multiple pages. I also managed to plot the mean trajectory of the parameters after the tsv generation. I will be opening two issues one to workout the errors from the posterior approximation graphs, and the other to implement plotting mean trajectory and posterior approximation graphs during tsv generation. |
Currently the entire analysis setup is contained on a single page, two columns (interface on left and feedback on right). This looks quite overwhelming for the user, and I think it would be simpler and cleaner to partition this workflow into separate pages as follows:
The text was updated successfully, but these errors were encountered: